Have each thread select() on the read end of a pipe that the main thread writes 
to when it wants to trigger a wakeup--write() is legal even in signal handlers.

Reply via email to