diff options
Diffstat (limited to 'man3/pthread_tryjoin_np.3')
-rw-r--r-- | man3/pthread_tryjoin_np.3 | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/man3/pthread_tryjoin_np.3 b/man3/pthread_tryjoin_np.3 index adc844cca..1a0643db6 100644 --- a/man3/pthread_tryjoin_np.3 +++ b/man3/pthread_tryjoin_np.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_tryjoin_np 3 2022-12-15 "Linux man-pages 6.03" +.TH pthread_tryjoin_np 3 2023-07-20 "Linux man-pages 6.05.01" .SH NAME pthread_tryjoin_np, pthread_timedjoin_np \- try to join with a terminated thread @@ -92,29 +92,27 @@ terminated. .BR pthread_timedjoin_np () never returns the error .BR EINTR . -.SH VERSIONS -These functions were added in glibc 2.3.3. .SH ATTRIBUTES For an explanation of the terms used in this section, see .BR attributes (7). -.ad l -.nh .TS allbox; lbx lb lb l l l. Interface Attribute Value T{ +.na +.nh .BR pthread_tryjoin_np (), .BR pthread_timedjoin_np () T} Thread safety MT-Safe .TE -.hy -.ad .sp 1 .SH STANDARDS -These functions are nonstandard GNU extensions; +GNU; hence the suffix "_np" (nonportable) in the names. +.SH HISTORY +glibc 2.3.3. .SH BUGS The .BR pthread_timedjoin_np () @@ -134,15 +132,15 @@ The following code waits to join for up to 5 seconds: .EX struct timespec ts; int s; - +\& \&... - +\& if (clock_gettime(CLOCK_REALTIME, &ts) == \-1) { /* Handle error */ } - +\& ts.tv_sec += 5; - +\& s = pthread_timedjoin_np(thread, NULL, &ts); if (s != 0) { /* Handle error */ |