You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
271 B

#include "pthread_impl.h"
static void dummy(void *p)
{
}
int pthread_join(pthread_t t, void **res)
{
int tmp = t->tid;
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;
}