3 ms·
Same here! Also annoying is inability to wake up when any (vs all) child threads are done. Even more annoying is that Windows API allows to wait on any combina
by okigan 10y ago
Same here! Also annoying is inability to wake up when any (vs all) child threads are done.
Even more annoying is that Windows API allows to wait on any combination of file/socket descriptor and/or message[1].
[1] MsgWaitForMultipleObjects https://msdn.microsoft.com/en-us/library/windows/desktop/ms684242(v=vs.85).aspx https://msdn.microsoft.com/en-us/library/windows/desktop/ms6...
- uep 10y agoI know we're talking about POSIX here, but Linux does have the ability to wait on signals the same way it waits on file descriptors. It does this by also allowing signals to be delivered on file descriptors. http://man7.org/linux/man-pages/man2/signalfd.2.html http://man7.org/linux/man-pages/man2/signalfd.2.html
- hyc_symas 10y agoGratuitous fluff. Writing to a pipefd inside a signal handler works on all POSIX systems.