X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_join.c;h=664abda94a2616f14a318ddffb9b0a4ffb4aa34b;hp=ba7bb7d54be15ca9ad911af060e2dd75f258abc1;hb=ec381af90208a5675183202cf05078eac208edfb;hpb=c68de0be2fb649f91b31080224fb6e48084eaaee diff --git a/src/thread/pthread_join.c b/src/thread/pthread_join.c index ba7bb7d5..664abda9 100644 --- a/src/thread/pthread_join.c +++ b/src/thread/pthread_join.c @@ -1,9 +1,13 @@ #include "pthread_impl.h" +static void dummy(void *p) +{ +} + int pthread_join(pthread_t t, void **res) { int tmp = t->tid; - if (tmp) __timedwait_cp(&t->tid, tmp, 0, 0, 1); + if (tmp) __timedwait(&t->tid, tmp, 0, 0, dummy, 0, 1); if (res) *res = t->result; if (t->map_base) munmap(t->map_base, t->map_size); return 0;