forked from facebook/folly
-
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 stop()/join() implementation for MuxIOThreadPoolExecutor
Summary: Currently the correct shutdown sequence is only implemented in `MuxIOThreadPoolExecutor`'s destructor, but `stop()` and `join()` should behave in the same way: call the `IOObserver`s to unregister the `EventBase`s before stopping the threads that run them. Otherwise, calling `join()` or `stop()` results in the observers being called too late. To fix this, just move the shutdown sequence to `join()`, and delegate all the other methods to it. Reviewed By: dmm-fb Differential Revision: D52521695 fbshipit-source-id: b10a9aa487efae72c85ea0be9df808a7fe885424
- Loading branch information
1 parent
13f91cd
commit 58bd6dd
Showing
5 changed files
with
59 additions
and
41 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
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