epicsThreadIsOkToBlock epicsThreadSetOkToBlock only for calling thread
This commit is contained in:
+1
-2
@@ -79,8 +79,7 @@ int epicsShareAPI iocInit()
|
||||
errlogPrintf("iocInit can only be called once\n");
|
||||
return(-1);
|
||||
}
|
||||
if(!epicsThreadIsOkToBlock(epicsThreadGetIdSelf()))
|
||||
epicsThreadSetOkToBlock(epicsThreadGetIdSelf(),1);
|
||||
if(!epicsThreadIsOkToBlock()) epicsThreadSetOkToBlock(1);
|
||||
errlogPrintf("Starting iocInit\n");
|
||||
if (!pdbbase) {
|
||||
errlogPrintf("iocInit aborting because No database\n");
|
||||
|
||||
Reference in New Issue
Block a user