From d9bad66cbb8823ad786ac480330db1c05e85557a Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 30 Jul 2002 17:18:25 +0000 Subject: * pthread_cond_wait.c (ptw32_cond_wait_cleanup): Remove code designed to avoid/prevent spurious wakeup problems. It is believed that the sem_timedwait() call is consuming a CV signal that it shouldn't and this is breaking the avoidance logic. --- ptw32_decrease_semaphore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ptw32_decrease_semaphore.c') diff --git a/ptw32_decrease_semaphore.c b/ptw32_decrease_semaphore.c index e16dfd6..51a6cf2 100644 --- a/ptw32_decrease_semaphore.c +++ b/ptw32_decrease_semaphore.c @@ -59,9 +59,9 @@ ptw32_decrease_semaphore(sem_t * sem) { s->value--; if (s->value != 0) - { - SetEvent(s->event); - } + { + SetEvent(s->event); + } } else { -- cgit v1.2.3