-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change memory ordering for reference counting
This commit changes the the reference counting behavior, going from add/sub with SEQ_CST/SEQ_CST to add/sub with RELAXED/RELEASE+ACQUIRE. This should make for more efficent clones and frees. This method is inspired by the reference counter implementation in the boost library. https://www.boost.org/doc/libs/1_57_0/doc/html/atomic/usage_examples.html
- Loading branch information
Showing
1 changed file
with
22 additions
and
13 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