added missing argument to threadSuspend() and made errVerbose

visible outside of WIN32 DLL
This commit is contained in:
Jeff Hill
2000-02-07 20:35:20 +00:00
parent 9ec0538624
commit 9f529db910
2 changed files with 4 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ of this distribution.
#define MAX_ALIGNMENT 8
/*Declare storage for errVerbose */
int errVerbose=0;
epicsShareDef int errVerbose=0;
LOCAL void errlogTask(void);
@@ -452,7 +452,7 @@ LOCAL void msgbufFreeSend()
pnextSend = (msgNode *)ellFirst(&pvtData.msgQueue);
if(!pnextSend) {
printf("errlog: msgbufFreeSend logic error\n");
threadSuspend(threadGetIdSelf());
threadSuspend();
}
ellDelete(&pvtData.msgQueue,&pnextSend->node);
semMutexGive(pvtData.msgQueueLock);
@@ -465,7 +465,7 @@ LOCAL void *pvtCalloc(size_t count,size_t size)
pmem = calloc(count,size);
if(!pmem) {
printf("calloc failed in errlog\n");
threadSuspend(threadGetIdSelf());
threadSuspend();
}
return(pmem);
}

View File

@@ -101,7 +101,7 @@ epicsShareFunc void epicsShareAPI errlogInit();
epicsShareFunc void epicsShareAPI errPrintf();
#endif /* ifdef epicsPrintUseProtoANSI */
extern int errVerbose;
epicsShareExtern int errVerbose;
#ifdef __cplusplus
}