summaryrefslogtreecommitdiff
path: root/semaphore.c
diff options
context:
space:
mode:
authorrpj <rpj>2000-09-02 09:34:19 +0000
committerrpj <rpj>2000-09-02 09:34:19 +0000
commit69b6d50683fcf0a7241953fdd2df6413477a2475 (patch)
tree3c3b9be88447c983391116352f741619f75d5a36 /semaphore.c
parent54286bb31e57ff4ae0f03810b7acc27031bcb034 (diff)
2000-09-02 Ross Johnson <rpj@special.ise.canberra.edu.au>
* condvar.c (ptw32_cond_wait_cleanup): Ensure that all waking threads check if they are the last, and notify the broadcaster if so - even if an error occurs in the waiter. * semaphore.c (_decrease_semaphore): Should be a call to ptw32_decrease_semaphore. (_increase_semaphore): Should be a call to ptw32_increase_semaphore. * misc.c (ptw32_cancelable_wait): Renamed from CancelableWait. (cond_wait_cleanup*): Rename to ptw32_cond_wait_cleanup*. (ptw32_cond_timedwait): Add comments.
Diffstat (limited to 'semaphore.c')
-rw-r--r--semaphore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/semaphore.c b/semaphore.c
index 366c2de..b388887 100644
--- a/semaphore.c
+++ b/semaphore.c
@@ -382,7 +382,7 @@ sem_wait (sem_t * sem)
#ifdef NEED_SEM
- _decrease_semaphore(sem);
+ ptw32_decrease_semaphore(sem);
#endif /* NEED_SEM */
@@ -426,7 +426,7 @@ sem_post (sem_t * sem)
#ifdef NEED_SEM
- else if (! _increase_semaphore (sem, 1))
+ else if (! ptw32_increase_semaphore (sem, 1))
#else /* NEED_SEM */