From ec8290acdaea21b16d98f1ef5d4ae8a28ab2109a Mon Sep 17 00:00:00 2001 From: rpj Date: Wed, 3 Nov 2004 01:08:41 +0000 Subject: Mutex, semaphore, thread ID, test suite changes - see ChangeLogs --- pthread_mutex_unlock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pthread_mutex_unlock.c') diff --git a/pthread_mutex_unlock.c b/pthread_mutex_unlock.c index 9002df5..113ca68 100644 --- a/pthread_mutex_unlock.c +++ b/pthread_mutex_unlock.c @@ -73,7 +73,7 @@ pthread_mutex_unlock (pthread_mutex_t * mutex) * release one waiter if possible, otherwise * it will just reset the event. */ - if (PulseEvent (mx->event) == 0) + if (SetEvent (mx->event) == 0) { result = EINVAL; } @@ -94,13 +94,13 @@ pthread_mutex_unlock (pthread_mutex_t * mutex) if (mx->kind != PTHREAD_MUTEX_RECURSIVE || 0 == --mx->recursive_count) { - mx->ownerThread = NULL; + mx->ownerThread.p = NULL; if ((LONG) PTW32_INTERLOCKED_EXCHANGE ((LPLONG) &mx->lock_idx, (LONG) 0) < 0) { /* Someone may be waiting on that mutex */ - if (PulseEvent (mx->event) == 0) + if (SetEvent (mx->event) == 0) { result = EINVAL; } -- cgit v1.2.3