return an error condition if they try to start a preemptive callback enabled context

when the thread already has a single threaded context.
This commit is contained in:
Jeff Hill
2003-10-28 16:05:49 +00:00
parent 0712df904b
commit c69536fc8e

View File

@@ -194,6 +194,10 @@ int epicsShareAPI ca_context_create (
pcac = ( ca_client_context * ) epicsThreadPrivateGet ( caClientContextId );
if ( pcac ) {
if ( premptiveCallbackSelect == ca_enable_preemptive_callback &&
! pcac->preemptiveCallbakIsEnabled() ) {
return ECA_NOTTHREADED;
}
return ECA_NORMAL;
}