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

Side by Side Diff: base/synchronization/lock_impl.h

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 11 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
« no previous file with comments | « base/synchronization/lock.h ('k') | base/synchronization/lock_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) 2011 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 #ifndef BASE_SYNCHRONIZATION_LOCK_IMPL_H_ 5 #ifndef BASE_SYNCHRONIZATION_LOCK_IMPL_H_
6 #define BASE_SYNCHRONIZATION_LOCK_IMPL_H_ 6 #define BASE_SYNCHRONIZATION_LOCK_IMPL_H_
7 7
8 #include "base/base_export.h"
9 #include "base/macros.h"
8 #include "build/build_config.h" 10 #include "build/build_config.h"
9 11
10 #if defined(OS_WIN) 12 #if defined(OS_WIN)
11 #include <windows.h> 13 #include <windows.h>
12 #elif defined(OS_POSIX) 14 #elif defined(OS_POSIX)
13 #include <pthread.h> 15 #include <pthread.h>
14 #endif 16 #endif
15 17
16 #include "base/base_export.h"
17 #include "base/basictypes.h"
18
19 namespace base { 18 namespace base {
20 namespace internal { 19 namespace internal {
21 20
22 // This class implements the underlying platform-specific spin-lock mechanism 21 // This class implements the underlying platform-specific spin-lock mechanism
23 // used for the Lock class. Most users should not use LockImpl directly, but 22 // used for the Lock class. Most users should not use LockImpl directly, but
24 // should instead use Lock. 23 // should instead use Lock.
25 class BASE_EXPORT LockImpl { 24 class BASE_EXPORT LockImpl {
26 public: 25 public:
27 #if defined(OS_WIN) 26 #if defined(OS_WIN)
28 typedef CRITICAL_SECTION NativeHandle; 27 typedef CRITICAL_SECTION NativeHandle;
(...skipping 23 matching lines...) Expand all
52 private: 51 private:
53 NativeHandle native_handle_; 52 NativeHandle native_handle_;
54 53
55 DISALLOW_COPY_AND_ASSIGN(LockImpl); 54 DISALLOW_COPY_AND_ASSIGN(LockImpl);
56 }; 55 };
57 56
58 } // namespace internal 57 } // namespace internal
59 } // namespace base 58 } // namespace base
60 59
61 #endif // BASE_SYNCHRONIZATION_LOCK_IMPL_H_ 60 #endif // BASE_SYNCHRONIZATION_LOCK_IMPL_H_
OLDNEW
« no previous file with comments | « base/synchronization/lock.h ('k') | base/synchronization/lock_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698