From 0103da82bdf86764129c3b1e57c0496af1bb91ab Mon Sep 17 00:00:00 2001 From: rpj Date: Sat, 29 May 1999 06:44:29 +0000 Subject: ./ChangeLog Sat May 8 09:42:30 1999 Ross Johnson * 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 * 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 * 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(). --- condvar.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'condvar.c') diff --git a/condvar.c b/condvar.c index c1f192c..580c379 100644 --- a/condvar.c +++ b/condvar.c @@ -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); } - - -- cgit v1.2.3