]> sourceware.org Git - glibc.git/commitdiff
C11 threads: make thrd_join more portable
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 13 Jan 2020 21:52:13 +0000 (21:52 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 9 Feb 2020 12:56:48 +0000 (13:56 +0100)
by making a __pthread_join call instead of an equivalent __pthread_clockjoin_ex
call.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
nptl/thrd_join.c

index 783e36f02bc8f31cbda213bc49aabf28aed57e41..0c482959d50fc42c8e16adb6f8178e8a8c3588d6 100644 (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;
 
This page took 0.041852 seconds and 5 git commands to generate.