summaryrefslogtreecommitdiff
path: root/tests/condvar4.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/condvar4.c')
-rw-r--r--tests/condvar4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/condvar4.c b/tests/condvar4.c
index a4f3299..15a32ba 100644
--- a/tests/condvar4.c
+++ b/tests/condvar4.c
@@ -102,10 +102,10 @@ mythread(void * arg)
cvthing.shared++;
- assert(pthread_mutex_unlock(&cvthing.lock) == 0);
-
assert(pthread_cond_signal(&cvthing.notbusy) == 0);
+ assert(pthread_mutex_unlock(&cvthing.lock) == 0);
+
return (void *) 0;
}