mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 19:53:32 +08:00
C11 threads: make thrd_join more portable
by making a __pthread_join call instead of an equivalent __pthread_clockjoin_ex call. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
c9abd9b4f3
commit
f1cea28137
@ -22,7 +22,7 @@ int
|
||||
thrd_join (thrd_t thr, int *res)
|
||||
{
|
||||
void *pthread_res;
|
||||
int err_code = __pthread_clockjoin_ex (thr, &pthread_res, 0, NULL, true);
|
||||
int err_code = __pthread_join (thr, &pthread_res);
|
||||
if (res)
|
||||
*res = (int) (uintptr_t) pthread_res;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user