which running thread gests the external signal

Vasil Dimov vd at FreeBSD.org
Thu May 4 05:45:34 UTC 2006


On Wed, May 03, 2006 at 10:54:01PM +0300, Alin-Adrian Anton wrote:
> 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.
> 
For portability you should stick to the standards.

Good luck!

-- 
Vasil Dimov
gro.DSBeerF at dv

Testing can show the presence of bugs, but not their absence.
                -- Edsger W. Dijkstra
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060504/5aa4d30c/attachment.pgp


More information about the freebsd-hackers mailing list