fix stacksize

This commit is contained in:
Marty Kraimer
2004-10-07 13:37:34 +00:00
parent 906f74cfe1
commit e8b642bd5f
+4 -3
View File
@@ -552,7 +552,6 @@ LOCAL void logRestart ( void *pPrivate )
*/
LOCAL void logClientGlobalInit ()
{
static const unsigned logRestartStackSize = 0x2000;
logClientGlobalMutex = epicsMutexCreate ();
if (!logClientGlobalMutex) {
@@ -570,8 +569,10 @@ LOCAL void logClientGlobalInit ()
return;
}
logClientThreadId = epicsThreadCreate ("logRestart", epicsThreadPriorityLow,
logRestartStackSize, logRestart, 0);
logClientThreadId = epicsThreadCreate ("logRestart",
epicsThreadPriorityLow,
epicsThreadGetStackSize(epicsThreadStackSmall),
logRestart, 0);
if (logClientThreadId==NULL) {
epicsMutexDestroy (logClientGlobalMutex);
logClientGlobalMutex = NULL;