Fix stale wakeups from Scheduler#unblock interrupting other operations - #468
Fix stale wakeups from Scheduler#unblock interrupting other operations#468tavianator wants to merge 1 commit into
Conversation
|
Thanks for this work. My initial feeling is, this is compensating for a bug that can manifest in other ways. Spurious wakeups are a reality of high peformance concurrency - sometimes it's hard to track enough state, efficiently, to not wake something up incorrectly. It's usually more efficient to deal with the spurious wakeup (e.g. go back to sleep) rather than try to fix the source. That being said, I'll review this PR in more detail soon. |
|
Yeah that's fair, I think a reasonable alternative fix would be to have |
|
@tavianator I think that's the correct solution, but feel free to figure it out. Eventually, I'd like to transition |
Fixes: #467
Types of Changes
Contribution