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

Side by Side Diff: base/lock_impl.h

Issue 5091005: FBTF: Remove unneeded headers from base/ (part 9) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win build Created 10 years, 1 month 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/lock.h ('k') | base/message_pump_win.h » ('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) 2010 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_LOCK_IMPL_H_ 5 #ifndef BASE_LOCK_IMPL_H_
6 #define BASE_LOCK_IMPL_H_ 6 #define BASE_LOCK_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
11 #if defined(OS_WIN) 11 #if defined(OS_WIN)
12 #include <windows.h> 12 #include <windows.h>
13 #elif defined(OS_POSIX) 13 #elif defined(OS_POSIX)
14 #include <pthread.h> 14 #include <pthread.h>
15 #endif 15 #endif
16 16
17 #include "base/basictypes.h" 17 #include "base/basictypes.h"
18 #include "base/platform_thread.h"
19 18
20 // This class implements the underlying platform-specific spin-lock mechanism 19 // This class implements the underlying platform-specific spin-lock mechanism
21 // used for the Lock class. Most users should not use LockImpl directly, but 20 // used for the Lock class. Most users should not use LockImpl directly, but
22 // should instead use Lock. 21 // should instead use Lock.
23 class LockImpl { 22 class LockImpl {
24 public: 23 public:
25 #if defined(OS_WIN) 24 #if defined(OS_WIN)
26 typedef CRITICAL_SECTION OSLockType; 25 typedef CRITICAL_SECTION OSLockType;
27 #elif defined(OS_POSIX) 26 #elif defined(OS_POSIX)
28 typedef pthread_mutex_t OSLockType; 27 typedef pthread_mutex_t OSLockType;
(...skipping 21 matching lines...) Expand all
50 #endif 49 #endif
51 50
52 private: 51 private:
53 OSLockType os_lock_; 52 OSLockType os_lock_;
54 53
55 DISALLOW_COPY_AND_ASSIGN(LockImpl); 54 DISALLOW_COPY_AND_ASSIGN(LockImpl);
56 }; 55 };
57 56
58 57
59 #endif // BASE_LOCK_IMPL_H_ 58 #endif // BASE_LOCK_IMPL_H_
OLDNEW
« no previous file with comments | « base/lock.h ('k') | base/message_pump_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698