diff options
Diffstat (limited to 'semaphore.h')
-rw-r--r-- | semaphore.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/semaphore.h b/semaphore.h index bc66e35..3616b11 100644 --- a/semaphore.h +++ b/semaphore.h @@ -64,15 +64,8 @@ extern "C" typedef unsigned int mode_t; #endif -#ifdef NEED_SEM -typedef struct { - unsigned int value; - pthread_mutex_t mutex; - HANDLE event; -} sem_t; -#else /* NEED_SEM */ -typedef HANDLE sem_t; -#endif /* NEED_SEM */ + +typedef sem_t_ * sem_t; int sem_init (sem_t * sem, int pshared, |