1 #include "pthread_impl.h"
4 int __munmap(void *, size_t);
6 static void dummy(void *p)
10 int __pthread_join(pthread_t t, void **res)
14 while ((tmp = t->tid)) __timedwait(&t->tid, tmp, 0, 0, dummy, 0, 0);
15 if (res) *res = t->result;
16 if (t->map_base) __munmap(t->map_base, t->map_size);
20 weak_alias(__pthread_join, pthread_join);