summaryrefslogtreecommitdiffstats
path: root/base/atomicops.h
diff options
context:
space:
mode:
authorctruta@blackberry.com <ctruta@blackberry.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-08 04:59:55 +0000
committerctruta@blackberry.com <ctruta@blackberry.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-08 04:59:55 +0000
commit9267710a4799c6fc0fb39e9add0871e2e7b9b6a9 (patch)
tree7dcee91965a9fd1171a659926c0b9d62f5040d43 /base/atomicops.h
parentf330b76298ce76aa490c787dc10b5d018ab1d6e5 (diff)
downloadchromium_src-9267710a4799c6fc0fb39e9add0871e2e7b9b6a9.zip
chromium_src-9267710a4799c6fc0fb39e9add0871e2e7b9b6a9.tar.gz
chromium_src-9267710a4799c6fc0fb39e9add0871e2e7b9b6a9.tar.bz2
Atomic ops cleanup.
Use <stdint.h> instead of "base/basictypes.h". Put AtomicOps_Internalx86CPUFeaturesInit in the anonymous namespace. Fix formatting issues. BUG= Review URL: https://codereview.chromium.org/143273005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249938 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/atomicops.h')
-rw-r--r--base/atomicops.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/atomicops.h b/base/atomicops.h
index 7f03492..3d15e03 100644
--- a/base/atomicops.h
+++ b/base/atomicops.h
@@ -28,7 +28,8 @@
#ifndef BASE_ATOMICOPS_H_
#define BASE_ATOMICOPS_H_
-#include "base/basictypes.h"
+#include <stdint.h>
+
#include "build/build_config.h"
#if defined(OS_WIN) && defined(ARCH_CPU_64_BITS)
@@ -43,7 +44,7 @@
namespace base {
namespace subtle {
-typedef int32 Atomic32;
+typedef int32_t Atomic32;
#ifdef ARCH_CPU_64_BITS
// We need to be able to go between Atomic64 and AtomicWord implicitly. This
// means Atomic64 and AtomicWord should be the same type on 64-bit.