Switch histogram code to using std::atomic.
Mostly cleanup. Note that this still uses atomics instead of C++11's thread-safe statics. C++11's thread-safe statics incur a large (200+ KB) size penalty since they guarantee that only one thread enters the initialization block. Change-Id: I3b013b55d5108f86ede39d0e0273ea10f8abf5e9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2045757Reviewed-by:Nico Weber <thakis@chromium.org> Reviewed-by:
Albert J. Wong <ajwong@chromium.org> Reviewed-by:
Alexei Svitkine <asvitkine@chromium.org> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Auto-Submit: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#740556}
Showing
Please register or sign in to comment