| OLD | NEW |
| 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 */ | |
| 5 | 4 |
| 6 #ifndef LIBRARIES_SDK_UTIL_SIMPLE_LOCK_H_ | 5 #ifndef LIBRARIES_SDK_UTIL_SIMPLE_LOCK_H_ |
| 7 #define LIBRARIES_SDK_UTIL_SIMPLE_LOCK_H_ | 6 #define LIBRARIES_SDK_UTIL_SIMPLE_LOCK_H_ |
| 8 | 7 |
| 9 #include "pthread.h" | 8 #include "pthread.h" |
| 10 #include "sdk_util/macros.h" | 9 #include "sdk_util/macros.h" |
| 11 | 10 |
| 12 namespace sdk_util { | 11 namespace sdk_util { |
| 13 | 12 |
| 14 /* | 13 /* |
| (...skipping 16 matching lines...) Expand all Loading... |
| 31 | 30 |
| 32 private: | 31 private: |
| 33 mutable pthread_mutex_t lock_; | 32 mutable pthread_mutex_t lock_; |
| 34 | 33 |
| 35 DISALLOW_COPY_AND_ASSIGN(SimpleLock); | 34 DISALLOW_COPY_AND_ASSIGN(SimpleLock); |
| 36 }; | 35 }; |
| 37 | 36 |
| 38 } // namespace sdk_util | 37 } // namespace sdk_util |
| 39 | 38 |
| 40 #endif // LIBRARIES_SDK_UTIL_SIMPLE_LOCK_H_ | 39 #endif // LIBRARIES_SDK_UTIL_SIMPLE_LOCK_H_ |
| 41 | |
| OLD | NEW |