Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: base/metrics/histogram_base.h

Issue 23450016: Re-land https://codereview.chromium.org/23602005: Use nobarrier atomics for lossy counters in base:… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/metrics/histogram_samples.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/histogram_base.h
===================================================================
--- base/metrics/histogram_base.h (revision 221170)
+++ base/metrics/histogram_base.h (working copy)
@@ -7,6 +7,7 @@
#include <string>
+#include "base/atomicops.h"
#include "base/base_export.h"
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
@@ -50,8 +51,8 @@
class BASE_EXPORT HistogramBase {
public:
- typedef int Sample; // Used for samples.
- typedef int Count; // Used to count samples.
+ typedef int Sample; // Used for samples.
+ typedef subtle::Atomic32 Count; // Used to count samples.
static const Sample kSampleType_MAX; // INT_MAX
« no previous file with comments | « no previous file | base/metrics/histogram_samples.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698