From 69b6d50683fcf0a7241953fdd2df6413477a2475 Mon Sep 17 00:00:00 2001 From: rpj Date: Sat, 2 Sep 2000 09:34:19 +0000 Subject: 2000-09-02 Ross Johnson * 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. --- misc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index 6228315..724bbc2 100644 --- a/misc.c +++ b/misc.c @@ -237,7 +237,7 @@ pthread_equal (pthread_t t1, pthread_t t2) static int -CancelableWait (HANDLE waitHandle, DWORD timeout) +ptw32_cancelable_wait (HANDLE waitHandle, DWORD timeout) /* * ------------------------------------------------------------------- * This provides an extra hook into the pthread_cancel @@ -346,13 +346,13 @@ CancelableWait (HANDLE waitHandle, DWORD timeout) int pthreadCancelableWait (HANDLE waitHandle) { - return (CancelableWait(waitHandle, INFINITE)); + return (ptw32_cancelable_wait(waitHandle, INFINITE)); } int pthreadCancelableTimedWait (HANDLE waitHandle, DWORD timeout) { - return (CancelableWait(waitHandle, timeout)); + return (ptw32_cancelable_wait(waitHandle, timeout)); } -- cgit v1.2.3