| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUTO_LOCK_H_ | 5 #ifndef LIBRARIES_SDK_UTIL_AUTO_LOCK_H_ |
| 7 #define LIBRARIES_SDK_UTIL_AUTO_LOCK_H_ | 6 #define LIBRARIES_SDK_UTIL_AUTO_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 #include "sdk_util/simple_lock.h" | 10 #include "sdk_util/simple_lock.h" |
| 12 | 11 |
| 13 namespace sdk_util { | 12 namespace sdk_util { |
| 14 | 13 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 35 | 34 |
| 36 private: | 35 private: |
| 37 pthread_mutex_t* lock_; | 36 pthread_mutex_t* lock_; |
| 38 | 37 |
| 39 DISALLOW_COPY_AND_ASSIGN(AutoLock); | 38 DISALLOW_COPY_AND_ASSIGN(AutoLock); |
| 40 }; | 39 }; |
| 41 | 40 |
| 42 } // namespace sdk_util | 41 } // namespace sdk_util |
| 43 | 42 |
| 44 #endif // LIBRARIES_SDK_UTIL_AUTO_LOCK_H_ | 43 #endif // LIBRARIES_SDK_UTIL_AUTO_LOCK_H_ |
| 45 | |
| OLD | NEW |