added ca_context_detach

This commit is contained in:
Jeff Hill
2005-11-14 23:28:09 +00:00
parent 05a2ab2893
commit 171977d01f
2 changed files with 51 additions and 6 deletions
+7
View File
@@ -738,6 +738,13 @@ int epicsShareAPI ca_attach_context ( struct ca_client_context * pCtx )
return ECA_NORMAL;
}
void epicsShareAPI ca_detach_context ()
{
if ( caClientContextId ) {
epicsThreadPrivateSet ( caClientContextId, 0 );
}
}
int epicsShareAPI ca_preemtive_callback_is_enabled ()
{
ca_client_context *pcac = (ca_client_context *) epicsThreadPrivateGet ( caClientContextId );