forked from facebookincubator/velox
-
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.
refactor: Use KeepAlive instead of Executor* (facebookincubator#11732)
Summary: X-link: facebookincubator/nimble#109 Pull Request resolved: facebookincubator#11732 folly::Executor::KeepAlive is the recommended way of holding references to executors as they ensure they are actually kept alive (block the executor destructor). A shared_ptr or a naked pointer won't ensure the executor is still available. Other functions from folly (like global pools) only provide KeepAlive APIs. Reviewed By: xiaoxmeng, sdruzkin Differential Revision: D66724539 fbshipit-source-id: 231527346bdd09cac45293379c7454ac1595f31d
- Loading branch information
1 parent
8b4663d
commit 09fbd54
Showing
5 changed files
with
32 additions
and
30 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