Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Guard
run_executor
against use of park/unpark in user-code.
If user code that is run as a result of polling the futures in the `run_executor` loop of `local_pool.rs` makes use of the park / unpark APIs, execution may stall due to wakeups getting "lost". This is prevented (and thereby unnecessary calls to park / unpark avoided) through an additional `AtomicBool` that is in full control of the code in `local_pool.rs`.
- Loading branch information
Showing
2 changed files
with
67 additions
and
4 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