threadOnceOsd fix for recursive invocations

This commit is contained in:
William Lupton
2000-03-01 18:49:46 +00:00
parent 8fca36d03c
commit 35f949f2cc
2 changed files with 2 additions and 2 deletions

View File

@@ -140,7 +140,7 @@ SRCS += osiThread.cpp
SRCS += osdTime.cpp
SRCS += osiTime.cpp
SRCS += osdSigPipeIgnore.c
SRCS += osdProcess.c
#SRCS += osdProcess.c
#tsStamp code is part of osiTime and osdTime
SRC_DIRS += $(LIBCOM)/taskwd

View File

@@ -184,8 +184,8 @@ void threadOnceOsd(threadOnceId *id, void (*func)(void *), void *arg)
semMutexMustTake(onceMutex);
if (*id == 0) {
func(arg);
*id = 1;
func(arg);
}
semMutexGive(onceMutex);
}