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

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

Issue 7461141: Rename BASE_API to BASE_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/synchronization/lock.h ('k') | base/synchronization/waitable_event.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) 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 #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/base_api.h" 17 #include "base/base_export.h"
18 #include "base/basictypes.h" 18 #include "base/basictypes.h"
19 19
20 namespace base { 20 namespace base {
21 namespace internal { 21 namespace internal {
22 22
23 // This class implements the underlying platform-specific spin-lock mechanism 23 // This class implements the underlying platform-specific spin-lock mechanism
24 // used for the Lock class. Most users should not use LockImpl directly, but 24 // used for the Lock class. Most users should not use LockImpl directly, but
25 // should instead use Lock. 25 // should instead use Lock.
26 class BASE_API LockImpl { 26 class BASE_EXPORT LockImpl {
27 public: 27 public:
28 #if defined(OS_WIN) 28 #if defined(OS_WIN)
29 typedef CRITICAL_SECTION OSLockType; 29 typedef CRITICAL_SECTION OSLockType;
30 #elif defined(OS_POSIX) 30 #elif defined(OS_POSIX)
31 typedef pthread_mutex_t OSLockType; 31 typedef pthread_mutex_t OSLockType;
32 #endif 32 #endif
33 33
34 LockImpl(); 34 LockImpl();
35 ~LockImpl(); 35 ~LockImpl();
36 36
(...skipping 18 matching lines...) Expand all
55 private: 55 private:
56 OSLockType os_lock_; 56 OSLockType os_lock_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(LockImpl); 58 DISALLOW_COPY_AND_ASSIGN(LockImpl);
59 }; 59 };
60 60
61 } // namespace internal 61 } // namespace internal
62 } // namespace base 62 } // namespace base
63 63
64 #endif // BASE_SYNCHRONIZATION_LOCK_IMPL_H_ 64 #endif // BASE_SYNCHRONIZATION_LOCK_IMPL_H_
OLDNEW
« no previous file with comments | « base/synchronization/lock.h ('k') | base/synchronization/waitable_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698