OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / glibc-linuxthreads / release / man3 / pthread_join.3
1 .\"   Copyright (C) 1996-1999 Free Software Foundation, Inc.
2 .\"
3 .\"   Permission is granted to make and distribute verbatim copies of
4 .\" this manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\"   Permission is granted to copy and distribute modified versions of
8 .\" this manual under the conditions for verbatim copying, provided that
9 .\" the entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\"   Permission is granted to copy and distribute translations of this
13 .\" manual into another language, under the above conditions for modified
14 .\" versions, except that this permission notice may be stated in a
15 .\" translation approved by the Foundation.
16 .\"
17 .\" Copyright (C) 1996 Xavier Leroy.
18 .\"
19 .\" Japanese Version Copyright (C) 2002-2003 Suzuki Takashi
20 .\"         all rights reserved.
21 .\" Translated Tue Dec 31 14:14:12 JST 2002
22 .\"         by Suzuki Takashi.
23 .\"
24 .\"WORD:    terminate           ½ªÎ»
25 .\"WORD:    cancellation        ¼è¤ê¾Ã¤·
26 .\"WORD:    calling thread      ¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É
27 .\"WORD:    suspend             Ää»ß
28 .\"WORD:    exit                ½ªÎ»
29 .\"WORD:    join                ¹çή
30 .\"WORD:    thread descriptor   ¥¹¥ì¥Ã¥É¥Ç¥£¥¹¥¯¥ê¥×¥¿
31 .\"
32 .\"
33 .TH PTHREAD_JOIN 3 LinuxThreads
34
35 .SH "̾Á°"
36 pthread_join \- Ê̤Υ¹¥ì¥Ã¥É¤Î½ªÎ»¤òÂÔ¤Ä
37
38 .SH "½ñ¼°"
39 .B #include <pthread.h>
40
41 .BI "int pthread_join(pthread_t " th ", void **" thread_return ");"
42
43 .SH "ÀâÌÀ"
44 .B "pthread_join"
45 ¤Ï¡¢
46 ¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É¤Î¼Â¹Ô¤òÄä»ß¤·¡¢
47 .I "th"
48 ¤Ç»ØÄꤷ¤¿¥¹¥ì¥Ã¥É¤¬
49 .BR "pthread_exit" (3)
50 ¤ò¸Æ¤Ó½Ð¤·¤Æ½ªÎ»¤¹¤ë¤«¡¢¼è¤ê¾Ã¤·¤µ¤ì¤Æ½ªÎ»¤¹¤ë¤Î¤òÂԤġ£
51
52 .I "thread_return"
53 ¤¬
54 .B "NULL"
55 ¤Ç¤Ê¤¤¤È¤­¤Ë¤Ï¡¢
56 .I "th"
57 ¤ÎÊÖ¤êÃͤ¬
58 .I "thread_return"
59 ¤Ç»Ø¤·¼¨¤µ¤ì¤ëÎΰè¤Ë³ÊǼ¤µ¤ì¤ë¡£
60 .I "th"
61 ¤ÎÊÖ¤êÃͤϡ¢
62 .BR "pthread_exit" (3)
63 ¤ËÍ¿¤¨¤é¤ì¤¿°ú¿ô¡¢¤Þ¤¿¤Ï
64 .BR "PTHREAD_CANCELED" (
65 .I "th"
66 ¤¬¼è¤ê¾Ã¤·¤µ¤ì¤¿¾ì¹ç ) ¤Ç¤¢¤ë¡£
67
68 ¹çή (join) ¤µ¤ì¤ë¥¹¥ì¥Ã¥É
69 .B "th"
70 ¤Ï¡¢¹çή²Äǽ (joinable) ¤Ê¾õÂ֤Ǥʤ±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
71 ¤¹¤Ê¤ï¤Á¡¢
72 .BR "pthread_detach" (3)
73 ¤ò»ÈÍѤ·¤Æ¥Ç¥¿¥Ã¥Á (detach) ¤µ¤ì¤Æ¤¤¤¿¤ê¡¢
74 .BR "pthread_create" (3)
75 ¤Ç°À­
76 .B "PTHREAD_CREATE_DETACHED"
77 ¤òÍ¿¤¨¤é¤ì¤Æ¤¤¤¿¤ê¤·¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
78
79 ¹çή²Äǽ¤Ê¥¹¥ì¥Ã¥É¤¬½ªÎ»¤·¤Æ¤â¡¢
80 Ê̤Υ¹¥ì¥Ã¥É¤¬¤½¤Î¥¹¥ì¥Ã¥É¤ËÂФ·¤Æ
81 .B "pthread_join"
82 ¤ò¸Æ¤Ó½Ð¤¹¤Þ¤Ç¤Ï¡¢
83 ¤½¤Î¥á¥â¥ê»ñ¸» (¥¹¥ì¥Ã¥É¥Ç¥£¥¹¥¯¥ê¥×¥¿¤È¥¹¥¿¥Ã¥¯) ¤Ï²òÊü¤µ¤ì¤Ê¤¤¡£
84 ¤·¤¿¤¬¤Ã¤Æ¡¢¥á¥â¥ê¥ê¡¼¥¯¤òËɤ°¤¿¤á¤Ë¤Ï¡¢
85 ¹çή²Äǽ¤Ê¥¹¥ì¥Ã¥É¤½¤ì¤¾¤ì¤ËÂФ·¤Æ
86 .B "pthread_join"
87 ¤ò 1 ²ó¤º¤Ä¸Æ¤Ó½Ð¤µ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
88
89 ¤¢¤ë¥¹¥ì¥Ã¥É¤Î½ªÎ»¤òÂԤĤ³¤È¤¬¤Ç¤­¤ë¥¹¥ì¥Ã¥É¤Ï¹â¡¹ 1 ¤Ä¤Ç¤¢¤ë¡£
90 ¤¹¤Ç¤ËÊ̤Υ¹¥ì¥Ã¥É¤¬½ªÎ»¤òÂԤäƤ¤¤ë¥¹¥ì¥Ã¥É
91 .I "th"
92 ¤ËÂФ·¤Æ
93 .B "pthread_join"
94 ¤ò¸Æ¤Ó½Ð¤·¤¿¾ì¹ç¡¢¥¨¥é¡¼¤¬Ê֤롣
95
96 .SH "¼è¤ê¾Ã¤·"
97
98 .B "pthread_join"
99 ¤Ï¼è¤ê¾Ã¤·¥Ý¥¤¥ó¥È¤Ç¤¢¤ë¡£
100 ¥¹¥ì¥Ã¥É¤¬
101 .B "pthread_join"
102 ¤ÇÄä»ß¤·¤Æ¤¤¤ë¤È¤­¤Ë¼è¤ê¾Ã¤·¤µ¤ì¤ë¤È¡¢
103 ľ¤Á¤Ë¼Â¹Ô¤¬ºÆ³«¤µ¤ì¤Æ
104 ¥¹¥ì¥Ã¥É
105 .I "th"
106 ¤¬½ªÎ»¤¹¤ë¤Î¤òÂԤĤ³¤È¤Ê¤¯¼è¤ê¾Ã¤·¤¬¼Â¹Ô¤µ¤ì¤ë¡£
107 ¼è¤ê¾Ã¤·¤¬
108 .B "pthread_join"
109 ¤Çµ¯¤³¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢
110 ¥¹¥ì¥Ã¥É
111 .I "th"
112 ¤Ï¹çή¤µ¤ì¤º¤Ë»Ä¤ë¤³¤È¤Ë¤Ê¤ë¡£
113
114 .SH "ÊÖ¤êÃÍ"
115 À®¸ù¤¹¤ë¤È¡¢
116 .I "th"
117 ¤ÎÊÖ¤êÃͤ¬
118 .IR "thread_return"
119 ¤Ç»Ø¤·¼¨¤µ¤ì¤¿Îΰè¤Ë³ÊǼ¤µ¤ì¡¢0 ¤¬Ê֤롣
120 ¥¨¥é¡¼¤Î¾ì¹ç¡¢Èó 0 ¤Î¥¨¥é¡¼¥³¡¼¥É¤¬Ê֤롣
121
122 .SH "¥¨¥é¡¼"
123 .TP
124 .B "ESRCH"
125 .I "th"
126 ¤Ç»ØÄꤵ¤ì¤¿ ID ¤ËÂбþ¤¹¤ë¥¹¥ì¥Ã¥É¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¡£
127 .TP
128 .B "EINVAL"
129 .I "th"
130 ¤Ç»ØÄꤵ¤ì¤¿¥¹¥ì¥Ã¥É¤Ï¤¹¤Ç¤Ë¥Ç¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¡£
131 .TP
132 .B "EINVAL"
133 ¤¹¤Ç¤ËÊ̤Υ¹¥ì¥Ã¥É¤¬¥¹¥ì¥Ã¥É
134 .I "th"
135 ¤Î½ªÎ»¤òÂԤäƤ¤¤ë¡£
136 .TP
137 .B "EDEADLK"
138 °ú¿ô
139 .I "th"
140 ¤¬¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É¤ò»Ø¤·¤Æ¤¤¤ë¡£
141
142 .SH "Ãø¼Ô"
143 Xavier Leroy <Xavier.Leroy@inria.fr>
144
145 .SH "´ØÏ¢¹àÌÜ"
146 .BR "pthread_exit" (3),
147 .BR "pthread_detach" (3),
148 .BR "pthread_create" (3),
149 .BR "pthread_attr_setdetachstate" (3),
150 .BR "pthread_cleanup_push" (3),
151 .BR "pthread_key_create" (3).