Semaphores and the GC.

Sean Kelly sean at f4.ca
Fri Mar 31 14:31:41 PST 2006


Frank Benoit wrote:
> On linux, if you use semaphores.
> The GC sends SIGUSR1 & SIGUSR2 to all threads for pausing and resuming.
> The semaphores will wake up with error EINTR. You only have to check for
> that, and wait again.

Sounds like a good reason to provide a wrapper for semaphores in D.


Sean



More information about the Digitalmars-d mailing list