forked from tokio-rs/mio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in custom readiness queue (tokio-rs#571)
A call to `Poll::poll` could corrupt the readiness queue's linked list under certain conditions. This commit fixes the logic around inserting the `sleep_token`, which allows producers to know when they need to wakeup `Poll`. Fixes tokio-rs#570
- Loading branch information
1 parent
2d58be9
commit b1d9260
Showing
2 changed files
with
83 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters