1 .\" Copyright (C) 1996-1999 Free Software Foundation, Inc.
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.
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.
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.
17 .\" Copyright (C) 1996 Xavier Leroy.
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.
24 .\"WORD: terminate ½ªÎ»
25 .\"WORD: cancellation ¼è¤ê¾Ã¤·
26 .\"WORD: calling thread ¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É
30 .\"WORD: thread descriptor ¥¹¥ì¥Ã¥É¥Ç¥£¥¹¥¯¥ê¥×¥¿
33 .TH PTHREAD_JOIN 3 LinuxThreads
36 pthread_join \- Ê̤Υ¹¥ì¥Ã¥É¤Î½ªÎ»¤òÂÔ¤Ä
39 .B #include <pthread.h>
41 .BI "int pthread_join(pthread_t " th ", void **" thread_return ");"
46 ¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É¤Î¼Â¹Ô¤òÄä»ß¤·¡¢
49 .BR "pthread_exit" (3)
50 ¤ò¸Æ¤Ó½Ð¤·¤Æ½ªÎ»¤¹¤ë¤«¡¢¼è¤ê¾Ã¤·¤µ¤ì¤Æ½ªÎ»¤¹¤ë¤Î¤òÂԤġ£
59 ¤Ç»Ø¤·¼¨¤µ¤ì¤ëÎΰè¤Ë³ÊǼ¤µ¤ì¤ë¡£
62 .BR "pthread_exit" (3)
63 ¤ËÍ¿¤¨¤é¤ì¤¿°ú¿ô¡¢¤Þ¤¿¤Ï
64 .BR "PTHREAD_CANCELED" (
66 ¤¬¼è¤ê¾Ã¤·¤µ¤ì¤¿¾ì¹ç ) ¤Ç¤¢¤ë¡£
68 ¹çή (join) ¤µ¤ì¤ë¥¹¥ì¥Ã¥É
70 ¤Ï¡¢¹çή²Äǽ (joinable) ¤Ê¾õÂ֤Ǥʤ±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
72 .BR "pthread_detach" (3)
73 ¤ò»ÈÍѤ·¤Æ¥Ç¥¿¥Ã¥Á (detach) ¤µ¤ì¤Æ¤¤¤¿¤ê¡¢
74 .BR "pthread_create" (3)
76 .B "PTHREAD_CREATE_DETACHED"
77 ¤òÍ¿¤¨¤é¤ì¤Æ¤¤¤¿¤ê¤·¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
79 ¹çή²Äǽ¤Ê¥¹¥ì¥Ã¥É¤¬½ªÎ»¤·¤Æ¤â¡¢
80 Ê̤Υ¹¥ì¥Ã¥É¤¬¤½¤Î¥¹¥ì¥Ã¥É¤ËÂФ·¤Æ
83 ¤½¤Î¥á¥â¥ê»ñ¸» (¥¹¥ì¥Ã¥É¥Ç¥£¥¹¥¯¥ê¥×¥¿¤È¥¹¥¿¥Ã¥¯) ¤Ï²òÊü¤µ¤ì¤Ê¤¤¡£
84 ¤·¤¿¤¬¤Ã¤Æ¡¢¥á¥â¥ê¥ê¡¼¥¯¤òËɤ°¤¿¤á¤Ë¤Ï¡¢
85 ¹çή²Äǽ¤Ê¥¹¥ì¥Ã¥É¤½¤ì¤¾¤ì¤ËÂФ·¤Æ
87 ¤ò 1 ²ó¤º¤Ä¸Æ¤Ó½Ð¤µ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
89 ¤¢¤ë¥¹¥ì¥Ã¥É¤Î½ªÎ»¤òÂԤĤ³¤È¤¬¤Ç¤¤ë¥¹¥ì¥Ã¥É¤Ï¹â¡¹ 1 ¤Ä¤Ç¤¢¤ë¡£
90 ¤¹¤Ç¤ËÊ̤Υ¹¥ì¥Ã¥É¤¬½ªÎ»¤òÂԤäƤ¤¤ë¥¹¥ì¥Ã¥É
94 ¤ò¸Æ¤Ó½Ð¤·¤¿¾ì¹ç¡¢¥¨¥é¡¼¤¬Ê֤롣
99 ¤Ï¼è¤ê¾Ã¤·¥Ý¥¤¥ó¥È¤Ç¤¢¤ë¡£
102 ¤ÇÄä»ß¤·¤Æ¤¤¤ë¤È¤¤Ë¼è¤ê¾Ã¤·¤µ¤ì¤ë¤È¡¢
103 ľ¤Á¤Ë¼Â¹Ô¤¬ºÆ³«¤µ¤ì¤Æ
106 ¤¬½ªÎ»¤¹¤ë¤Î¤òÂԤĤ³¤È¤Ê¤¯¼è¤ê¾Ã¤·¤¬¼Â¹Ô¤µ¤ì¤ë¡£
112 ¤Ï¹çή¤µ¤ì¤º¤Ë»Ä¤ë¤³¤È¤Ë¤Ê¤ë¡£
119 ¤Ç»Ø¤·¼¨¤µ¤ì¤¿Îΰè¤Ë³ÊǼ¤µ¤ì¡¢0 ¤¬Ê֤롣
120 ¥¨¥é¡¼¤Î¾ì¹ç¡¢Èó 0 ¤Î¥¨¥é¡¼¥³¡¼¥É¤¬Ê֤롣
126 ¤Ç»ØÄꤵ¤ì¤¿ ID ¤ËÂбþ¤¹¤ë¥¹¥ì¥Ã¥É¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¡£
130 ¤Ç»ØÄꤵ¤ì¤¿¥¹¥ì¥Ã¥É¤Ï¤¹¤Ç¤Ë¥Ç¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¡£
133 ¤¹¤Ç¤ËÊ̤Υ¹¥ì¥Ã¥É¤¬¥¹¥ì¥Ã¥É
140 ¤¬¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É¤ò»Ø¤·¤Æ¤¤¤ë¡£
143 Xavier Leroy <Xavier.Leroy@inria.fr>
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).