diff options
Diffstat (limited to 'man3/pthread_tryjoin_np.3')
-rw-r--r-- | man3/pthread_tryjoin_np.3 | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/man3/pthread_tryjoin_np.3 b/man3/pthread_tryjoin_np.3 index d7bdf4f2b..89de89693 100644 --- a/man3/pthread_tryjoin_np.3 +++ b/man3/pthread_tryjoin_np.3 @@ -23,7 +23,7 @@ .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" -.TH PTHREAD_TRYJOIN_NP 3 2020-06-09 "Linux" "Linux Programmer's Manual" +.TH PTHREAD_TRYJOIN_NP 3 2020-12-21 "Linux" "Linux Programmer's Manual" .SH NAME pthread_tryjoin_np, pthread_timedjoin_np \- try to join with a terminated thread @@ -63,7 +63,10 @@ If .I thread has not yet terminated, then the call blocks until a maximum time, specified in -.IR abstime . +.IR abstime , +measured against the +.BR CLOCK_REALTIME +clock. If the timeout expires before .I thread terminates, @@ -157,13 +160,25 @@ if (s != 0) { } .EE .in +.SH BUGS +The +.BR pthread_timedjoin_np () +function measures time by internally calculating a relative sleep interval +that is then measured against the +.BR CLOCK_MONOTONIC +clock instead of the +.BR CLOCK_REALTIME +clock. +Consequently, the timeout is unaffected by discontinuous changes to the +.BR CLOCK_REALTIME +clock. .SH SEE ALSO .BR clock_gettime (2), .BR pthread_exit (3), .BR pthread_join (3), .BR pthreads (7) .SH COLOPHON -This page is part of release 5.09 of the Linux +This page is part of release 5.10 of the Linux .I man-pages project. A description of the project, |