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:
1 parent
0712df904b
commit
c69536fc8e
1 file changed
+4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user