Added libCom/test code for epicsThreadOnce() implementations.

Also fixed subsystems that were not using epicsThreadOnce correctly.
This commit is contained in:
Andrew Johnson
2010-04-26 15:48:42 -05:00
parent c5a27fa32e
commit 6ece3235c9
5 changed files with 127 additions and 22 deletions
+1 -1
View File
@@ -445,7 +445,7 @@ epicsShareFunc int epicsShareAPI errlogInit2(int bufsize, int maxMsgSize)
static epicsThreadOnceId errlogOnceFlag = EPICS_THREAD_ONCE_INIT;
struct initArgs config;
if (errlogOnceFlag > 0 && pvtData.atExit)
if (pvtData.atExit)
return 0;
if (bufsize < BUFFER_SIZE) bufsize = BUFFER_SIZE;