From a23d093e2968344fcaf8c8ecf3d223d411fb9d9b Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Tue, 8 Feb 2000 20:14:59 +0000 Subject: [PATCH] Remove task argument to threadSuspend(). --- src/db/callback.c | 2 +- src/db/dbBkpt.c | 5 ++++- src/db/dbLock.c | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/db/callback.c b/src/db/callback.c index 600981038..fbcd26e59 100644 --- a/src/db/callback.c +++ b/src/db/callback.c @@ -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); diff --git a/src/db/dbBkpt.c b/src/db/dbBkpt.c index 917fc1a64..45bbf15ba 100644 --- a/src/db/dbBkpt.c +++ b/src/db/dbBkpt.c @@ -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); } diff --git a/src/db/dbLock.c b/src/db/dbLock.c index f9a50a3d1..67aad2f6e 100644 --- a/src/db/dbLock.c +++ b/src/db/dbLock.c @@ -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);