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) 1999 GOTO, Masanori
20 .\" all rights reserved.
21 .\" Translated on Tue Dec 14 21:30:57 JST 1999
22 .\" by GOTO, Masanori <gotom@debian.or.jp>.
23 .\" Modified Sun Feb 2 01:00:26 JST 2003
24 .\" by Suzuki Takashi.
26 .\"WORD: thread ¥¹¥ì¥Ã¥É
27 .\"WORD: detach ¥Ç¥¿¥Ã¥Á
28 .\"WORD: detached state ¥Ç¥¿¥Ã¥Á¾õÂÖ
29 .\"WORD: memory resources ¥á¥â¥ê»ñ¸»
31 .\"WORD: synchronize Ʊ´ü¤¹¤ë
32 .\"WORD: termination ½ªÎ»
34 .\"WORD: attribute °35 .\"WORD: joinable ¹çή²Äǽ
37 .\"WORD: error code ¥¨¥é¡¼¥³¡¼¥É
40 .TH PTHREAD_DETACH 3 LinuxThreads
43 pthread_detach \- ¼Â¹ÔÃæ¤Î¥¹¥ì¥Ã¥É¤ò¥Ç¥¿¥Ã¥Á¾õÂ֤ˤ¹¤ë
46 .B #include <pthread.h>
48 .BI "int pthread_detach(pthread_t " th ");"
54 ¤ò¥Ç¥¿¥Ã¥Á¾õÂ֤ˤ¹¤ë¡£¤³¤ì¤Ï
58 ¤Ë¤è¤Ã¤Æ¾ÃÈñ¤µ¤ì¤Æ¤¤¤¿¥á¥â¥ê»ñ¸»¤ò¨ºÂ¤Ë²òÊü¤¹¤ë¤³¤È¤òÊݾڤ¹¤ë¡£
59 ¤·¤«¤·¤Ê¤¬¤é¡¢¤³¤ì¤Ë¤è¤Ã¤Æ¾¤Î¥¹¥ì¥Ã¥É¤Ï
63 ¤Î½ªÎ»¤ËƱ´ü¤¹¤ë¤³¤È¤¬¤Ç¤¤Ê¤¯¤Ê¤ë¡£
66 .BR "pthread_create" (3)
69 ¤òÍѤ¤¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢ºÇ½é¤«¤é¥Ç¥¿¥Ã¥Á¾õÂÖ¤ÇÀ¸À®
73 ¤Ï¹çή²Äǽ¾õÂ֤Ȥ·¤ÆÀ¸À®¤µ¤ì¡¢¸å¤Ë¥Ç¥¿¥Ã¥Á¾õÂ֤ˤ¹¤ëɬÍפνФƤ¤¿
74 ¥¹¥ì¥Ã¥É¤ËŬÍѤµ¤ì¤ë¡£
81 ¤ò¼Â¹Ô¤·¤Æ¤â¼ºÇÔ¤¹¤ë¡£¤â¤·
83 ¤¬¸Æ¤Ð¤ì¤¿»þ¤ËÊ̤Υ¹¥ì¥Ã¥É¤¬¥¹¥ì¥Ã¥É
85 ¤Î½ªÎ»¤òÂԤäƤ¤¤ë (joining) ¤Ê¤é¤Ð¡¢
89 ¤ò¹çή²Äǽ¾õÂ֤Τޤޤˤ·¤Æ¤ª¤¯¡£
92 À®¸ù¤¹¤ë¤È 0 ¤¬Ê֤롣¥¨¥é¡¼¤Î¾ì¹ç¤Ï¡¢Èó 0 ¤Î¥¨¥é¡¼¥³¡¼¥É¤¬Ê֤롣
98 ¤Ç»ØÄꤷ¤¿¥¹¥ì¥Ã¥É¤¬¸«¤Ä¤«¤é¤Ê¤¤¡£
103 ¤Ï´û¤Ë¥Ç¥¿¥Ã¥Á¾õÂ֤ˤ¢¤ë¡£
107 Xavier Leroy <Xavier.Leroy@inria.fr>
110 .BR "pthread_create" (3),
111 .BR "pthread_join" (3),
112 .BR "pthread_attr_setdetachstate" (3)