On 2/21/07, James Carlson <[EMAIL PROTECTED]> wrote:
William James writes:
> On 2/21/07, Vincenzo Sciarra <[EMAIL PROTECTED]> wrote:
> > All threads receive the signal. Better, the main thread receive the signal 
but it shares the signal with other threads.
> >
> >
> >
> > Dott. Vincenzo Sciarra
>
> So all  threads call the signal callback at the same time? Can I use
> pthread_mutex_lock() in the signal handler to prevent a race
> condition?

There's no race.  For async signals, system just picks one thread for
delivery.

This is bad. Is there no function to define that signals should be
send to all threads for async signals?

Cheers,
William
--
   @,,@   William James
  (\--/)  [EMAIL PROTECTED]
 (.>__<.) GNU/Solaris hacker
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to