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:
Samuel Thibault 2020-01-13 21:52:13 +00:00
parent c9abd9b4f3
commit f1cea28137

View File

@ -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;