From 9f529db910eb06a2accf05c2f8e56bb7ec5be0e6 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 7 Feb 2000 20:35:20 +0000 Subject: [PATCH] added missing argument to threadSuspend() and made errVerbose visible outside of WIN32 DLL --- src/libCom/error/errlog.c | 6 +++--- src/libCom/error/errlog.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libCom/error/errlog.c b/src/libCom/error/errlog.c index 5a083f358..8f85d5c97 100644 --- a/src/libCom/error/errlog.c +++ b/src/libCom/error/errlog.c @@ -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); } diff --git a/src/libCom/error/errlog.h b/src/libCom/error/errlog.h index c2acec420..463b269cd 100644 --- a/src/libCom/error/errlog.h +++ b/src/libCom/error/errlog.h @@ -101,7 +101,7 @@ epicsShareFunc void epicsShareAPI errlogInit(); epicsShareFunc void epicsShareAPI errPrintf(); #endif /* ifdef epicsPrintUseProtoANSI */ -extern int errVerbose; +epicsShareExtern int errVerbose; #ifdef __cplusplus }