diff options
Diffstat (limited to 'tests/condvar7.c')
-rw-r--r-- | tests/condvar7.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/condvar7.c b/tests/condvar7.c index e79e0f8..a5bf4bf 100644 --- a/tests/condvar7.c +++ b/tests/condvar7.c @@ -200,8 +200,6 @@ main() cvthing.shared++; - assert(pthread_mutex_unlock(&cvthing.lock) == 0); - /* * Cancel one of the threads. */ @@ -213,6 +211,8 @@ main() */ assert(pthread_cond_broadcast(&cvthing.notbusy) == 0); + assert(pthread_mutex_unlock(&cvthing.lock) == 0); + /* * Give threads time to complete. */ |