make sure that evid is set before first subscription cb arrives

This commit is contained in:
Jeff Hill
2004-01-15 03:16:54 +00:00
parent 8bd3d4a8a0
commit 5b4c37df17

View File

@@ -687,10 +687,10 @@ int epicsShareAPI ca_create_subscription (
new ( pChan->getClientCtx().subscriptionFreeList )
oldSubscription ( *pChan,
pCallBack, pCallBackArg ) );
pSubsr->begin ( guard, tmpType, count, mask );
if ( monixptr ) {
*monixptr = pSubsr.get ();
}
pSubsr->begin ( guard, tmpType, count, mask );
pSubsr.release ();
// dont touch pTmp after this because
// the first callback might have canceled it