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:
committed by
Adhemerval Zanella
parent
893bbdd007
commit
69ca4b54c1
@ -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)
|
||||
|
Reference in New Issue
Block a user