Re:Wine 11 rewrites how Linux runs Windows games at kernel w...
by gpderetta on Wednesday March 25, 2026 @03:33AM
(#47514389)
Great post.
Ah, interesting, so wfm does both the wait and the acquire!
When using eventfd it is indeed annoying having to both poll and later read to disarm the object (there are epoll tricks that can be used but are not generalizable).
The signal+wait is also a primitive that it is hard to implement atomically on posix.
There was also something about needing to back out if any of the reads fails to acquire, which also sounds nasty.