forked from vmware/concord-bft
-
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.
Make SynchronizedValue::replace() return an accessor
Do this to make it more usable in cases where one might want to replace the value and retain the lock for further processing. Do not use replace() in the constructor as it unnecessarily locks the mutex. Instead, directly call std::make_unique().
- Loading branch information
1 parent
6285cc3
commit 50a1f25
Showing
2 changed files
with
37 additions
and
20 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