forked from tokio-rs/tokio
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
time: fix panic on multithreaded runtime shutdown
All core threads share the same park, and invoke park() followed by shutdown - in parallel. This is quite possibly a bug in the worker (in that it invokes shutdown when it's not done with the parker), but for now work around it by bypassing the timer parker once shutdown is called. Fixes: tokio-rs#2789
- Loading branch information
Bryan Donlan
committed
Dec 7, 2020
1 parent
0707f4c
commit 74bd064
Showing
3 changed files
with
43 additions
and
7 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
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