1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
|
.\" Copyright (C) 1996-1999 Free Software Foundation, Inc.
.\"
.\" Permission is granted to make and distribute verbatim copies of
.\" this manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of
.\" this manual under the conditions for verbatim copying, provided that
.\" the entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Permission is granted to copy and distribute translations of this
.\" manual into another language, under the above conditions for modified
.\" versions, except that this permission notice may be stated in a
.\" translation approved by the Foundation.
.\"
.\" Copyright (C) 1996 Xavier Leroy.
.\"
.\" Japanese Version Copyright (C) 2002-2003 Suzuki Takashi
.\" all rights reserved.
.\" Translated Tue Dec 31 14:14:12 JST 2002
.\" by Suzuki Takashi.
.\"
.\"WORD: terminate λ
.\"WORD: cancellation ä
.\"WORD: calling thread ƤӽФå
.\"WORD: suspend
.\"WORD: exit λ
.\"WORD: join ή
.\"WORD: thread descriptor åɥǥץ
.\"
.\"
.TH PTHREAD_JOIN 3 LinuxThreads
.SH "̾"
pthread_join \- ̤ΥåɤνλԤ
.SH ""
.B #include <pthread.h>
.BI "int pthread_join(pthread_t " th ", void **" thread_return ");"
.SH ""
.B "pthread_join"
ϡ
ƤӽФåɤμ¹Ԥߤ
.I "th"
ǻꤷåɤ
.BR "pthread_exit" (3)
ƤӽФƽλ뤫äƽλΤԤġ
.I "thread_return"
.B "NULL"
ǤʤȤˤϡ
.I "th"
֤ͤ
.I "thread_return"
ǻؤΰ˳Ǽ롣
.I "th"
֤ͤϡ
.BR "pthread_exit" (3)
Ϳ줿ޤ
.BR "PTHREAD_CANCELED" (
.I "th"
ä줿 ) Ǥ롣
ή (join) 륹å
.B "th"
ϡήǽ (joinable) ʾ֤ǤʤФʤʤ
ʤ
.BR "pthread_detach" (3)
Ѥƥǥå (detach) Ƥꡢ
.BR "pthread_create" (3)
°
.B "PTHREAD_CREATE_DETACHED"
ͿƤꤷƤϤʤʤ
ήǽʥåɤλƤ⡢
̤ΥåɤΥåɤФ
.B "pthread_join"
ƤӽФޤǤϡ
Υ (åɥǥץȥå) ϲʤ
äơɤˤϡ
ήǽʥåɤ줾Ф
.B "pthread_join"
1 ĸƤӽФʤФʤʤ
륹åɤνλԤĤȤǤ륹åɤϹ⡹ 1 ĤǤ롣
Ǥ̤ΥåɤλԤäƤ륹å
.I "th"
Ф
.B "pthread_join"
ƤӽФ硢顼֤롣
.SH "ä"
.B "pthread_join"
ϼäݥȤǤ롣
åɤ
.B "pthread_join"
ߤƤȤ˼äȡ
ľ˼¹ԤƳ
å
.I "th"
λΤԤĤȤʤä¹Ԥ롣
ä
.B "pthread_join"
ǵäˤϡ
å
.I "th"
Ϲή줺˻Ĥ뤳Ȥˤʤ롣
.SH "֤"
ȡ
.I "th"
֤ͤ
.IR "thread_return"
ǻؤ줿ΰ˳Ǽ졢0 ֤롣
顼ξ硢 0 Υ顼ɤ֤롣
.SH "顼"
.TP
.B "ESRCH"
.I "th"
ǻꤵ줿 ID б륹åɤĤʤä
.TP
.B "EINVAL"
.I "th"
ǻꤵ줿åɤϤǤ˥ǥåƤ롣
.TP
.B "EINVAL"
Ǥ̤Υåɤå
.I "th"
νλԤäƤ롣
.TP
.B "EDEADLK"
.I "th"
ƤӽФåɤؤƤ롣
.SH ""
Xavier Leroy <Xavier.Leroy@inria.fr>
.SH "Ϣ"
.BR "pthread_exit" (3),
.BR "pthread_detach" (3),
.BR "pthread_create" (3),
.BR "pthread_attr_setdetachstate" (3),
.BR "pthread_cleanup_push" (3),
.BR "pthread_key_create" (3).
|