diff options
Diffstat (limited to 'src/thread/pthread_join.c')
-rw-r--r-- | src/thread/pthread_join.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/thread/pthread_join.c b/src/thread/pthread_join.c index 19e6b548..b4ff33a5 100644 --- a/src/thread/pthread_join.c +++ b/src/thread/pthread_join.c @@ -3,15 +3,11 @@ int __munmap(void *, size_t); -static void dummy(void *p) -{ -} - int __pthread_join(pthread_t t, void **res) { int tmp; pthread_testcancel(); - while ((tmp = t->tid)) __timedwait(&t->tid, tmp, 0, 0, dummy, 0, 0); + while ((tmp = t->tid)) __timedwait_cp(&t->tid, tmp, 0, 0, 0); if (res) *res = t->result; if (t->map_base) __munmap(t->map_base, t->map_size); return 0; |