☰
Debian Codegraph
@
0.0~git20260129.ec0effd-3
0.0~git20260129.ec0effd-2
/
/
libc-top-half
/
musl
/
src
/
thread
/
thrd_join.c
☽
☼
libc-top-half/musl/src/thread/thrd_join.c
code
plain
raw
MIT
2005-2019 Rich Felker <
[email protected]
>; 2005-2019 Many other contributors
debian/copyright
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
}