[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threads

> Ah but the main thread (process) blocked signals, and all the child
> threads (processes) inherit these blocked signals. So in theory, they
> should not receive any, they should all go to the main thread only,
> blocked in sigwait(). It seems to work so far, anyway :)

Oh you also mentioned complete lack of Win32 compatibility, this is true.
However a quick #ifdef WIN32 would fix that, an equivalent loop exists in
Windows, waiting for WM_QUIT instead of SIQQUIT, and using GetMessage() to
block instead of sigwait(). Ugh.