-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: make ProcessMetrics API thread-safe
Previous calls to Update() or Get() could cause corruption because they could attempt to write to stor_ from different threads. Put a lock around all access to stor_ so that doesn't happen. PR-URL: #86 Reviewed-by: Santiago Gimeno <santiago.gimeno@gmail.com>
- Loading branch information
1 parent
173d6ba
commit e2d7087
Showing
3 changed files
with
17 additions
and
4 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