summaryrefslogtreecommitdiff
path: root/implement.h
diff options
context:
space:
mode:
authorrpj <rpj>2001-06-11 12:59:34 +0000
committerrpj <rpj>2001-06-11 12:59:34 +0000
commit5561998d3f57b23914c5a8cc5a07e53492242a3e (patch)
tree98747b22eeea71cceb65775fdba209de8590b37c /implement.h
parentcde63164e7f952ed0980fe62877796b81f749310 (diff)
* semaphore.h (sem_t): Fixed for compile and test.
* implement.h (sem_t_): Likewise. * semaphore.c: Likewise. * private.c (ptw32_sem_timedwait): Updated to use new opaque sem_t. tests/ * mutex5.c: Insert inert change to quell compiler warnings. * condvar3_2.c: Remove unused variable.
Diffstat (limited to 'implement.h')
-rw-r--r--implement.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/implement.h b/implement.h
index 9518f9e..0df0e4c 100644
--- a/implement.h
+++ b/implement.h
@@ -119,15 +119,15 @@ struct pthread_attr_t_ {
* ====================
*/
+struct sem_t_ {
#ifdef NEED_SEM
-typedef struct {
unsigned int value;
CRITICAL_SECTION sem_lock_cs;
HANDLE event;
-} sem_t_;
#else /* NEED_SEM */
-typedef HANDLE sem_t_;
+ HANDLE sem;
#endif /* NEED_SEM */
+};
#define PTW32_OBJECT_AUTO_INIT ((void *) -1)
#define PTW32_OBJECT_INVALID NULL