If nothing else affects the fd, then a poll on a single fd on multiple threads would wake up all the threads when the fd is written to. However, if one of the threads wakes up and reads the fd before another wakes up, then that other one will not wake up, because the fd has turned from readable to unreadable.
The only potential solution that I see at the moment is using the edge-triggered mode of epoll. We are using poll in wait though, in contrast with Event_Reactor.
Alternatively, we could disallow using an Event on multiple threads.
If nothing else affects the fd, then a poll on a single fd on multiple threads would wake up all the threads when the fd is written to. However, if one of the threads wakes up and reads the fd before another wakes up, then that other one will not wake up, because the fd has turned from readable to unreadable.
The only potential solution that I see at the moment is using the edge-triggered mode of epoll. We are using poll in
waitthough, in contrast withEvent_Reactor.Alternatively, we could disallow using an Event on multiple threads.