From: Samuel Thibault Date: Mon, 13 Jan 2020 21:52:13 +0000 (+0000) Subject: C11 threads: make thrd_join more portable X-Git-Tag: glibc-2.32~727 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1cea28137f471e551073cdcfc8d04775e5020f8;p=thirdparty%2Fglibc.git 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 --- diff --git a/nptl/thrd_join.c b/nptl/thrd_join.c index 783e36f02bc..0c482959d50 100644 --- a/nptl/thrd_join.c +++ b/nptl/thrd_join.c @@ -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;