1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

nptl: Add pthread_clockjoin_np

Introduce pthread_clockjoin_np as a version of pthread_timedjoin_np that
accepts a clockid_t parameter to indicate which clock the timeout should be
measured against. This mirrors the recently-added POSIX-proposed "clock"
wait functions.

Checked on x86_64-linux-gnu.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
Mike Crowe
2019-10-31 10:03:21 -03:00
committed by Adhemerval Zanella
parent 893bbdd007
commit 69ca4b54c1
45 changed files with 235 additions and 28 deletions

View File

@ -21,6 +21,7 @@
int
__pthread_join (pthread_t threadid, void **thread_return)
{
return __pthread_timedjoin_ex (threadid, thread_return, NULL, true);
return __pthread_clockjoin_ex (threadid, thread_return, 0 /* Ignored */,
NULL, true);
}
weak_alias (__pthread_join, pthread_join)