projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ba7bb7d54be15ca9ad911af060e2dd75f258abc1
[musl]
/
pthread_join.c
1
#include "pthread_impl.h"
2
3
int pthread_join(pthread_t t, void **res)
4
{
5
int tmp = t->tid;
6
if (tmp) __timedwait_cp(&t->tid, tmp, 0, 0, 1);
7
if (res) *res = t->result;
8
if (t->map_base) munmap(t->map_base, t->map_size);
9
return 0;
10
}