Commit 97e397ef authored by Ian Craggs's avatar Ian Craggs

Didn't mean to change the definition of createSem for Windows

parent cb1b5f2a
...@@ -197,13 +197,14 @@ sem_type Thread_create_sem(void) ...@@ -197,13 +197,14 @@ sem_type Thread_create_sem(void)
FALSE, /* initial state is nonsignaled */ FALSE, /* initial state is nonsignaled */
NULL /* object name */ NULL /* object name */
); );
#if 0
sem = CreateSemaphore( sem = CreateSemaphore(
NULL, /* default security attributes */ NULL, /* default security attributes */
0, /* initial count - non signaled */ 0, /* initial count - non signaled */
1, /* maximum count */ 1, /* maximum count */
NULL /* unnamed semaphore */ NULL /* unnamed semaphore */
); );
#endif
#elif defined(OSX) #elif defined(OSX)
sem = dispatch_semaphore_create(0L); sem = dispatch_semaphore_create(0L);
rc = (sem == NULL) ? -1 : 0; rc = (sem == NULL) ? -1 : 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment