OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_UTIL_SIMPLEAUTOLOCK_H_ | 6 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_UTIL_SIMPLEAUTOLOCK_H_ |
7 #define PACKAGES_LIBRARIES_NACL_MOUNTS_UTIL_SIMPLEAUTOLOCK_H_ | 7 #define PACKAGES_LIBRARIES_NACL_MOUNTS_UTIL_SIMPLEAUTOLOCK_H_ |
8 | 8 |
9 #include <pthread.h> | 9 #include <pthread.h> |
10 | 10 |
11 class SimpleAutoLock { | |
12 public: | |
13 explicit SimpleAutoLock(pthread_mutex_t *lock); | |
vissi
2012/06/01 15:42:30
This file would be removed completely, I just miss
| |
14 ~SimpleAutoLock(); | |
15 | |
16 private: | |
17 pthread_mutex_t *lock_; | |
18 }; | |
19 | |
20 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_UTIL_SIMPLEAUTOLOCK_H_ | 11 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_UTIL_SIMPLEAUTOLOCK_H_ |
OLD | NEW |