3 ms·
On Win32 select() is called WaitForMultipleObjects() and it can wait on Events (similar to condition variables) as well as pipes, so such a trick is unnecessary
by blt 12y ago
On Win32 select() is called WaitForMultipleObjects() and it can wait on Events (similar to condition variables) as well as pipes, so such a trick is unnecessary. Not that the extra pipe is a serious performance loss, but it's heavier than needed for the task. But WaitForMultipleObjects has its own problems.
- renox 12y ago> But WaitForMultipleObjects has its own problems. Could you elaborate on this? Even though, I tend to like Unix I thought that WaitForMultipleObjects was a better solution here.