Chromium Code Reviews| Index: base/synchronization/lock.h |
| =================================================================== |
| --- base/synchronization/lock.h (revision 78949) |
| +++ base/synchronization/lock.h (working copy) |
| @@ -6,6 +6,7 @@ |
| #define BASE_SYNCHRONIZATION_LOCK_H_ |
| #pragma once |
| +#include "base/base_api.h" |
| #include "base/synchronization/lock_impl.h" |
| #include "base/threading/platform_thread.h" |
| @@ -14,7 +15,7 @@ |
| // A convenient wrapper for an OS specific critical section. The only real |
| // intelligence in this class is in debug mode for the support for the |
| // AssertAcquired() method. |
| -class Lock { |
| +class BASE_API Lock { |
|
wtc
2011/03/23 22:05:12
Can you summarize the rules for determining which
rvargas (doing something else)
2011/03/23 22:59:04
The basic rule is that anything that is not direct
|
| public: |
| #if defined(NDEBUG) // Optimized wrapper implementation |
| Lock() : lock_() {} |