repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix and overhaul dlsym depedency order, always record direct deps
[musl.git]
/
src
/
thread
/
thrd_join.c
blob
0d5fd302d1810425a49f52fb3e8c7efe83f9e719
1
#include <stdint.h>
2
#include <threads.h>
3
#include <pthread.h>
4
5
int
thrd_join
(
thrd_t t
,
int
*
res
)
6
{
7
void
*
pthread_res
;
8
__pthread_join
(
t
, &
pthread_res
);
9
if
(
res
) *
res
= (
int
)(
intptr_t
)
pthread_res
;
10
return
thrd_success
;
11
}