Date: Wed, 03 May 2006 22:54:01 +0300 From: Alin-Adrian Anton <aanton@spintech.ro> To: Daniel Eischen <deischen@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: which running thread gests the external signal Message-ID: <44590A59.7000307@spintech.ro> In-Reply-To: <Pine.GSO.4.64.0605030848260.6093@sea.ntplx.net> References: <4456A5B3.2010809@spintech.ro> <Pine.GSO.4.64.0605012044390.25456@sea.ntplx.net> <44579DE0.1050207@spintech.ro> <Pine.GSO.4.64.0605021400420.414@sea.ntplx.net> <44589A77.7070707@spintech.ro> <Pine.GSO.4.64.0605030848260.6093@sea.ntplx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Eischen wrote: [..] > > Note that sigprocmask() and pthread_sigprocmask() are equivalent. I > don't even think pthread_sigprocmask() is in the standard any longer > (it used to be in an older version of the standard). New applications > should be using sigprocmask(). > Yes I noticed. However, this just happens to be the implementation (probably pthread_sigmask is a wrapper to sigprocmask). This might not be the case on other OS, so for portability I'll stick to the pthread_sigmask in threads, and sigprocmask in single threaded apps. Thanks, -- Alin-Adrian Anton GPG keyID 0x183087BA (B129 E8F4 7B34 15A9 0785 2F7C 5823 ABA0 1830 87BA) gpg --keyserver pgp.mit.edu --recv-keys 0x183087BA "It is dangerous to be right when the government is wrong." - Voltaire
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44590A59.7000307>