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.
an overload of ThreadLocalPtr::reset taking std::shared_ptr
Summary: A variation of `ThreadLocalPtr<std::shared_ptr<T>>` but with one less indirection to access the pointer. Copies the `std::shared_ptr` into a custom deleter in order to keep the pointer alive. Differential Revision: D59398514 fbshipit-source-id: 93d4df834b408dd5e86ea49c418c060ef7def4ef
- Loading branch information
1 parent
9e71a72
commit 53bd909
Showing
4 changed files
with
74 additions
and
3 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