diff options
author | rpj <rpj> | 1999-05-29 06:44:29 +0000 |
---|---|---|
committer | rpj <rpj> | 1999-05-29 06:44:29 +0000 |
commit | 0103da82bdf86764129c3b1e57c0496af1bb91ab (patch) | |
tree | 6bc26b5ecd6623422ec4ba46c6259f94cf699cf5 /condvar.c | |
parent | 17b9298d9918a36c344741f20f165bc67b5b7769 (diff) |
./ChangeLog
Sat May 8 09:42:30 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* pthread.def (sem_open): Add.
(sem_close): Add.
(sem_unlink): Add.
(sem_getvalue): Add.
* FAQ (Question 3): Add.
Thu Apr 8 01:16:23 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* semaphore.c (sem_open): New function; returns an error (ENOSYS).
(sem_close): ditto.
(sem_unlink): ditto.
(sem_getvalue): ditto.
* semaphore.h (_POSIX_SEMAPHORES): define.
./tests/ChangeLog
Sat May 29 23:29:04 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* runall.bat (condvar5): Add new test.
* runall.bat (condvar6): Add new test.
* Makefile (condvar5) : Add new test.
* Makefile (condvar6) : Add new test.
* condvar5.c: New test for pthread_cond_broadcast().
* condvar6.c: New test for pthread_cond_broadcast().
Diffstat (limited to 'condvar.c')
-rw-r--r-- | condvar.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -817,7 +817,6 @@ pthread_cond_broadcast (pthread_cond_t * cond) */ { int result = 0; - int i; pthread_cond_t cv; if (cond == NULL || *cond == NULL) @@ -840,7 +839,7 @@ pthread_cond_broadcast (pthread_cond_t * cond) /* * Wake up all waiters */ - result = (ReleaseSemaphore( cv->sema, cond->waiters, NULL ) + result = (ReleaseSemaphore( cv->sema, cv->waiters, NULL ) ? 0 : EINVAL); @@ -865,5 +864,3 @@ pthread_cond_broadcast (pthread_cond_t * cond) return (result); } - - |