On Oct 30, 2012, at 11:06 AM, Alex Rønne Petersen <a...@lycus.org> wrote:
> On 30-10-2012 19:04, Sean Kelly wrote: >> >> >> The semaphore implementation for OSX is not signal-safe. Originally, >> druntime used the signal approach on OSX and had deadlock issues in the >> signal handler (OSX semaphores wrap a global mutex to obtain something from >> a shared pool). Also, semaphores on OSX are just ridiculously slow. The >> current method for suspending and scanning threads on OSX is much faster. I >> wish Posix in general had the same feature. Using signals is really a hack. >> >> It may be worth dropping use of SIGUSR1/2 in favor of the realtime signals >> as well, since SIGUSR1/2 are in pretty common use. >> > > Real time signals as in? SIGRTMIN - SIGRTMAX. Linux supports them, but I'm not sure which other Posix OSes.