diff options
Diffstat (limited to 'implement.h')
-rw-r--r-- | implement.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/implement.h b/implement.h index 1b57b60..9518f9e 100644 --- a/implement.h +++ b/implement.h @@ -114,11 +114,21 @@ struct pthread_attr_t_ { /* * ==================== * ==================== - * Mutexes and Condition Variables + * Semaphores, Mutexes and Condition Variables * ==================== * ==================== */ +#ifdef NEED_SEM +typedef struct { + unsigned int value; + CRITICAL_SECTION sem_lock_cs; + HANDLE event; +} sem_t_; +#else /* NEED_SEM */ +typedef HANDLE sem_t_; +#endif /* NEED_SEM */ + #define PTW32_OBJECT_AUTO_INIT ((void *) -1) #define PTW32_OBJECT_INVALID NULL |