Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use RW lock for AID instead of __thread variable
Store actor IDs in an unordered map protected via RW lock instead of using a non-portable `__thread` variable. Though this is less efficient, the performance overhead is still negligible compared to the overall cost of enabling logging in the first place. Close #258; a more generic `thread_specific_ptr` implementation turned out have too much implementation overhead to be worth the effort.
- Loading branch information
Showing
2 changed files
with
49 additions
and
23 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