Reflect routine name change from threadSuspend() to threadSuspendSelf().
This commit is contained in:
@@ -121,7 +121,7 @@ static void callbackTask(int *ppriority)
|
||||
if(nget==0) break;
|
||||
if(nget!=sizeof(pcallback)) {
|
||||
errMessage(0,"ringGet failed in callbackTask");
|
||||
threadSuspend();
|
||||
threadSuspendSelf();
|
||||
}
|
||||
ringOverflow[priority] = FALSE;
|
||||
(*pcallback->callback)(pcallback);
|
||||
|
||||
@@ -14,6 +14,9 @@ of this distribution.
|
||||
/* Modification Log:
|
||||
* -----------------
|
||||
* $Log$
|
||||
* Revision 1.17 2000/02/25 22:26:38 mrk
|
||||
* more changes for creating dlls
|
||||
*
|
||||
* Revision 1.16 2000/02/25 22:01:24 mrk
|
||||
* changes for creating DLLs
|
||||
*
|
||||
@@ -827,7 +830,7 @@ int epicsShareAPI dbBkpt(struct dbCommon *precord)
|
||||
*/
|
||||
semMutexGive(bkpt_stack_sem);
|
||||
dbScanUnlock(precord);
|
||||
threadSuspend();
|
||||
threadSuspendSelf();
|
||||
dbScanLock(precord);
|
||||
semMutexMustTake(bkpt_stack_sem);
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ void epicsShareAPI dbScanLock(dbCommon *precord)
|
||||
if(!(plockRecord= precord->lset)) {
|
||||
epicsPrintf("dbScanLock plockRecord is NULL record %s\n",
|
||||
precord->name);
|
||||
threadSuspend();
|
||||
threadSuspendSelf();
|
||||
}
|
||||
while(TRUE) {
|
||||
while(changingLockSets) threadSleep(.05);
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
* epicsAssert ()
|
||||
*
|
||||
* This forces assert failures into the log file and then
|
||||
* calls threadSuspend() instead of exit() so that we can debug
|
||||
* calls threadSuspendSelf() instead of exit() so that we can debug
|
||||
* the problem.
|
||||
*/
|
||||
epicsShareFunc void epicsShareAPI epicsAssert (const char *pFile, const unsigned line, const char *pExp,
|
||||
@@ -83,6 +83,6 @@ epicsShareFunc void epicsShareAPI epicsAssert (const char *pFile, const unsigned
|
||||
}
|
||||
epicsPrintf ("This problem occurred in \"%s\"\n", epicsReleaseVersion);
|
||||
|
||||
threadSuspend ();
|
||||
threadSuspendSelf ();
|
||||
}
|
||||
|
||||
|
||||
@@ -281,7 +281,7 @@ LOCAL int req_server (void)
|
||||
*/
|
||||
if ((IOC_sock = socket(AF_INET, SOCK_STREAM, 0)) == SOCKET_ERROR) {
|
||||
errlogPrintf ("CAS: Socket creation error\n");
|
||||
threadSuspend ();
|
||||
threadSuspendSelf ();
|
||||
}
|
||||
|
||||
/* Zero the sock_addr structure */
|
||||
@@ -293,14 +293,14 @@ LOCAL int req_server (void)
|
||||
if (bind(IOC_sock, (struct sockaddr *)&serverAddr, sizeof(serverAddr)) < 0) {
|
||||
errlogPrintf ("CAS: Bind error\n");
|
||||
socket_close (IOC_sock);
|
||||
threadSuspend ();
|
||||
threadSuspendSelf ();
|
||||
}
|
||||
|
||||
/* listen and accept new connections */
|
||||
if (listen(IOC_sock, 10) < 0) {
|
||||
errlogPrintf ("CAS: Listen error\n");
|
||||
socket_close (IOC_sock);
|
||||
threadSuspend ();
|
||||
threadSuspendSelf ();
|
||||
}
|
||||
|
||||
while (TRUE) {
|
||||
|
||||
@@ -149,7 +149,7 @@ int cast_server(void)
|
||||
|
||||
if ((IOC_cast_sock = socket (AF_INET, SOCK_DGRAM, 0)) < 0) {
|
||||
epicsPrintf ("CAS: cast socket creation error\n");
|
||||
threadSuspend ();
|
||||
threadSuspendSelf ();
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -187,7 +187,7 @@ int cast_server(void)
|
||||
if( bind(IOC_cast_sock, (struct sockaddr *)&sin, sizeof (sin)) < 0){
|
||||
epicsPrintf ("CAS: cast bind error\n");
|
||||
socket_close (IOC_cast_sock);
|
||||
threadSuspend ();
|
||||
threadSuspendSelf ();
|
||||
}
|
||||
|
||||
/* tell clients we are on line again */
|
||||
@@ -308,4 +308,4 @@ int cast_server(void)
|
||||
clean_addrq ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,14 +86,14 @@ int rsrv_online_notify_task()
|
||||
*/
|
||||
if( (sock = socket (AF_INET, SOCK_DGRAM, 0)) == SOCKET_ERROR){
|
||||
errlogPrintf ("CAS: online socket creation error\n");
|
||||
threadSuspend ();
|
||||
threadSuspendSelf ();
|
||||
}
|
||||
|
||||
status = setsockopt (sock, SOL_SOCKET, SO_BROADCAST,
|
||||
(char *)&true, sizeof(true));
|
||||
if (status<0) {
|
||||
errlogPrintf ("CAS: online socket set up error\n");
|
||||
threadSuspend ();
|
||||
threadSuspendSelf ();
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
Reference in New Issue
Block a user