Date: Wed, 7 Feb 2007 22:36:41 +0100 From: "Pietro Cerutti" <pietro.cerutti@gmail.com> To: "youshi10@u.washington.edu" <youshi10@u.washington.edu> Cc: freebsd-hackers@freebsd.org Subject: Re: Trying to join an already exited pthread Message-ID: <e572718c0702071336o332337d7ue4cdc76bfabb4a1d@mail.gmail.com> In-Reply-To: <Pine.LNX.4.43.0702071314560.22034@hymn08.u.washington.edu> References: <Pine.LNX.4.43.0702071314560.22034@hymn08.u.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2/7/07, youshi10@u.washington.edu <youshi10@u.washington.edu> wrote: > Just wondering: > > If I was to try and join a pthread that already exited, would there be an error message output and/or errno set to an error value, or would a system hang? man pthread_join(3): ERRORS The pthread_join() function will fail if: [EINVAL] The implementation has detected that the value speci- fied by thread does not refer to a joinable thread. A pthread that already exited is considered non-joinable > It this variable on Unix OSes? The pthread_join() function conforms to ISO/IEC 9945-1:1996 (``POSIX.1''). > -Garrett -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e572718c0702071336o332337d7ue4cdc76bfabb4a1d>