4 ms·
How would poll() have helped in this case? It seems like the error condition in the article (interrupting syscalls in unexpected ways can trash whatever state y
by zbentley 5y ago
How would poll() have helped in this case? It seems like the error condition in the article (interrupting syscalls in unexpected ways can trash whatever state your syscall wrapper manages for e.g. return values) is a risk regardless of the blocking operation being performed.
- Const-me 5y agopoll is not available for Windows. The semantic is similar to WaitForMultipleObjects with overlapped IO but not quite. Thread pool API doesn't have this class of bugs. One doesn't need to wake up any threads to change the set of handles being polled.