You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 withEvent_Reactor
.Alternatively, we could disallow using an Event on multiple threads.
The text was updated successfully, but these errors were encountered: