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
+3 -3
View File
@@ -418,8 +418,8 @@ iocsh (const char *pathname)
* Read commands till EOF or exit
*/
argc = 0;
wasOkToBlock = epicsThreadIsOkToBlock(epicsThreadGetIdSelf());
epicsThreadSetOkToBlock(epicsThreadGetIdSelf(), 1);
wasOkToBlock = epicsThreadIsOkToBlock();
epicsThreadSetOkToBlock(1);
for (;;) {
/*
@@ -730,7 +730,7 @@ iocsh (const char *pathname)
free (argBuf);
errlogFlush();
epicsReadlineEnd(readlineContext);
epicsThreadSetOkToBlock(epicsThreadGetIdSelf(), wasOkToBlock);
epicsThreadSetOkToBlock( wasOkToBlock);
return 0;
}