summaryrefslogtreecommitdiff
path: root/tests/mutex3.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mutex3.c')
-rw-r--r--tests/mutex3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/mutex3.c b/tests/mutex3.c
index 26cb070..07e75b1 100644
--- a/tests/mutex3.c
+++ b/tests/mutex3.c
@@ -33,8 +33,7 @@ main()
assert(pthread_mutex_lock(&mutex1) == 0);
assert(pthread_create(&t, NULL, func, NULL) == 0);
-
- Sleep(2000);
+ assert(pthread_join(t, NULL) == 0);
assert(pthread_mutex_unlock(&mutex1) == 0);