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

Side by Side Diff: base/atomicops.h

Issue 6759017: iwyu: Cleanup in the following files: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright again. Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/at_exit.cc ('k') | base/atomicops_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // For atomic operations on reference counts, see atomic_refcount.h. 5 // For atomic operations on reference counts, see atomic_refcount.h.
6 // For atomic operations on sequence numbers, see atomic_sequence_num.h. 6 // For atomic operations on sequence numbers, see atomic_sequence_num.h.
7 7
8 // The routines exported by this module are subtle. If you use them, even if 8 // The routines exported by this module are subtle. If you use them, even if
9 // you get the code right, it will depend on careful reasoning about atomicity 9 // you get the code right, it will depend on careful reasoning about atomicity
10 // and memory ordering; it will be less readable, and harder to maintain. If 10 // and memory ordering; it will be less readable, and harder to maintain. If
11 // you plan to use these routines, you should have a good reason, such as solid 11 // you plan to use these routines, you should have a good reason, such as solid
(...skipping 11 matching lines...) Expand all
23 // NoBarrier_Load() 23 // NoBarrier_Load()
24 // Although there are currently no compiler enforcement, you are encouraged 24 // Although there are currently no compiler enforcement, you are encouraged
25 // to use these. 25 // to use these.
26 // 26 //
27 27
28 #ifndef BASE_ATOMICOPS_H_ 28 #ifndef BASE_ATOMICOPS_H_
29 #define BASE_ATOMICOPS_H_ 29 #define BASE_ATOMICOPS_H_
30 #pragma once 30 #pragma once
31 31
32 #include "base/basictypes.h" 32 #include "base/basictypes.h"
33 #include "base/port.h" 33 #include "build/build_config.h"
34 34
35 namespace base { 35 namespace base {
36 namespace subtle { 36 namespace subtle {
37 37
38 // Bug 1308991. We need this for /Wp64, to mark it safe for AtomicWord casting. 38 // Bug 1308991. We need this for /Wp64, to mark it safe for AtomicWord casting.
39 #ifndef OS_WIN 39 #ifndef OS_WIN
40 #define __w64 40 #define __w64
41 #endif 41 #endif
42 typedef __w64 int32 Atomic32; 42 typedef __w64 int32 Atomic32;
43 #ifdef ARCH_CPU_64_BITS 43 #ifdef ARCH_CPU_64_BITS
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 #include "base/atomicops_internals_x86_macosx.h" 139 #include "base/atomicops_internals_x86_macosx.h"
140 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_X86_FAMILY) 140 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_X86_FAMILY)
141 #include "base/atomicops_internals_x86_gcc.h" 141 #include "base/atomicops_internals_x86_gcc.h"
142 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_ARM_FAMILY) 142 #elif defined(COMPILER_GCC) && defined(ARCH_CPU_ARM_FAMILY)
143 #include "base/atomicops_internals_arm_gcc.h" 143 #include "base/atomicops_internals_arm_gcc.h"
144 #else 144 #else
145 #error "Atomic operations are not supported on your platform" 145 #error "Atomic operations are not supported on your platform"
146 #endif 146 #endif
147 147
148 #endif // BASE_ATOMICOPS_H_ 148 #endif // BASE_ATOMICOPS_H_
OLDNEW
« no previous file with comments | « base/at_exit.cc ('k') | base/atomicops_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698