epicsThreadIsOkToBlock epicsThreadSetOkToBlock only for calling thread

This commit is contained in:
Marty Kraimer
2004-07-13 13:35:35 +00:00
parent 4d5213f609
commit f54d1ca30a
12 changed files with 75 additions and 40 deletions
+1 -2
View File
@@ -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");