Open
Description
In eventfd
, we would unblock multiple threads in a deterministic sequence. In epoll
, we always choose the thread id from the end of the list if multiple threads are blocked on the same epoll instance. We could randomize these operation depending on the seed.
Related FIXME:
miri/src/shims/unix/linux/eventfd.rs
Lines 226 to 229 in 9d9da34
miri/src/shims/unix/linux/epoll.rs
Lines 549 to 555 in 9d9da34
Side note:
Blocking socketpair #3665 would need to use this too.