From f1cea28137f471e551073cdcfc8d04775e5020f8 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 13 Jan 2020 21:52:13 +0000 Subject: [PATCH] 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 --- nptl/thrd_join.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nptl/thrd_join.c b/nptl/thrd_join.c index 783e36f02b..0c482959d5 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;