Remove task argument to threadSuspend().

This commit is contained in:
W. Eric Norum
2000-02-08 20:14:59 +00:00
parent 110e3b4cf3
commit a23d093e29
3 changed files with 6 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ static void callbackTask(int *ppriority)
if(nget==0) break;
if(nget!=sizeof(pcallback)) {
errMessage(0,"ringGet failed in callbackTask");
threadSuspend(threadGetIdSelf());
threadSuspend();
}
ringOverflow[priority] = FALSE;
(*pcallback->callback)(pcallback);

View File

@@ -14,6 +14,9 @@ of this distribution.
/* Modification Log:
* -----------------
* $Log$
* Revision 1.14 2000/01/27 19:46:40 mrk
* semId => semBinaryId and semMutexId
*
* Revision 1.13 2000/01/24 20:58:12 mrk
* new way to build
*
@@ -813,7 +816,7 @@ int dbBkpt(struct dbCommon *precord)
*/
semMutexGive(bkpt_stack_sem);
dbScanUnlock(precord);
threadSuspend(0);
threadSuspend();
dbScanLock(precord);
semMutexMustTake(bkpt_stack_sem);
}

View File

@@ -191,7 +191,7 @@ void dbScanLock(dbCommon *precord)
if(!(plockRecord= precord->lset)) {
epicsPrintf("dbScanLock plockRecord is NULL record %s\n",
precord->name);
threadSuspend(threadGetIdSelf());
threadSuspend();
}
while(TRUE) {
while(changingLockSets) threadSleep(.05);