forked from chromium/chromium
-
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.
[Cronet] Make HistogramManager public APIs thread-safe.
CronetEngine.getGlobalMetricsDeltas() exposes the underlying HistogramManager public APIs on multiple threads, so crashes can occur if accessed concurrently. The current public APIs are GetInstance() which simply accesses a thread-safe LazyInstance, and GetDeltas() which doesn't look thread-safe so I've added a Lock. BUG=603028 Review URL: https://codereview.chromium.org/1882563004 Cr-Commit-Position: refs/heads/master@{#387009}
- Loading branch information
1 parent
136fbbc
commit 487de2d
Showing
2 changed files
with
21 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
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