diff options
Diffstat (limited to 'sem_init.c')
-rw-r--r-- | sem_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -127,8 +127,9 @@ sem_init (sem_t * sem, int pshared, unsigned int value) #else /* NEED_SEM */ + s->value = value; s->sem = CreateSemaphore (NULL, /* Always NULL */ - (long) value, /* Initial value */ + (long) 0, /* Force threads to wait */ (long) _POSIX_SEM_VALUE_MAX, /* Maximum value */ NULL); /* Name */ |