Print this page
11628 typos detected by mandoc style
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man3c/thrd_join.3c
+++ new/usr/src/man/man3c/thrd_join.3c
1 1 .\"
2 2 .\" This file and its contents are supplied under the terms of the
3 3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
4 4 .\" You may only use this file in accordance with the terms of version
5 5 .\" 1.0 of the CDDL.
6 6 .\"
7 7 .\" A full copy of the text of the CDDL should have accompanied this
8 8 .\" source. A copy of the CDDL is also available via the Internet at
9 9 .\" http://www.illumos.org/license/CDDL.
10 10 .\"
11 11 .\"
12 12 .\" Copyright 2016 Joyent, Inc.
13 13 .\"
14 -.Dd "Jan 13, 2015"
14 +.Dd "Aug 27, 2019"
15 15 .Dt THRD_JOIN 3C
16 16 .Os
17 17 .Sh NAME
18 18 .Nm thrd_join
19 19 .Nd wait for thread termination
20 20 .Sh SYNOPSIS
21 21 .In threads.h
22 22 .Ft int
23 23 .Fo thrd_join
24 24 .Fa "thrd_t thrd"
25 25 .Fa "int *res"
26 26 .Fc
27 27 .Sh DESCRIPTION
28 28 The
29 29 .Fn thrd_join
30 -function suspends the exection of the current thread and waits for the
30 +function suspends the execution of the current thread and waits for the
31 31 thread indicated by
32 32 .Fa thrd
33 33 to terminate and stores the exit status, as set by a call to
34 34 .Xr thrd_exit 3C ,
35 35 for that thread in
36 36 .Fa res ,
37 37 if
38 38 .Fa res
39 39 is non-null.
40 40 The
41 41 .Fa thrd
42 42 argument must be a member of the current process and it cannot be
43 43 detached.
44 44 If
45 45 .Fa thrd
46 46 has already terminated and another caller has not called
47 47 .Fn thrd_join
48 48 then the exit status will be returned to the caller without blocking
49 49 execution of the thread.
50 50 .Pp
51 51 If multiple threads call
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
52 52 .Fn thrd_join
53 53 on the same thread, then both will be suspended until that thread
54 54 terminates; however, only one thread will return successfully and obtain
55 55 the actual status and the other will instead return with an error.
56 56 .Pp
57 57 For additional information on the thread joining interfaces supported by
58 58 the system, see
59 59 .Xr pthread_join 3C
60 60 and
61 61 .Xr thr_join 3C .
62 -.Sh RETURN_VALUES
62 +.Sh RETURN VALUES
63 63 Upon successful completion, the
64 64 .Fn thrd_join
65 65 function returns
66 66 .Sy thrd_success
67 67 and if
68 68 .Fa res
69 69 is a non-null pointer, it will be filled in with the exit status of
70 70 .Fa thrd .
71 71 If an error occurs,
72 72 .Sy thrd_error
73 73 will be returned.
74 74 .Sh INTERFACE STABILITY
75 75 .Sy Standard
76 76 .Sh MT-LEVEL
77 77 .Sy MT-Safe
78 78 .Sh SEE ALSO
79 79 .Xr pthread_join 3C ,
80 80 .Xr thrd_create 3C ,
81 81 .Xr thrd_detach 3C ,
82 82 .Xr attributes 5 ,
83 83 .Xr threads 5
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX