projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
completely new barrier implementation, addressing major correctness issues
[oweals/musl.git]
/
src
/
thread
/
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
}