OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef BIN_LOCKERS_H_ | 5 #ifndef RUNTIME_BIN_LOCKERS_H_ |
6 #define BIN_LOCKERS_H_ | 6 #define RUNTIME_BIN_LOCKERS_H_ |
7 | 7 |
8 #include "bin/thread.h" | 8 #include "bin/thread.h" |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 | 10 |
11 namespace dart { | 11 namespace dart { |
12 namespace bin { | 12 namespace bin { |
13 | 13 |
14 class MutexLocker { | 14 class MutexLocker { |
15 public: | 15 public: |
16 explicit MutexLocker(Mutex* mutex) : mutex_(mutex) { | 16 explicit MutexLocker(Mutex* mutex) : mutex_(mutex) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 private: | 55 private: |
56 Monitor* const monitor_; | 56 Monitor* const monitor_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(MonitorLocker); | 58 DISALLOW_COPY_AND_ASSIGN(MonitorLocker); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace bin | 61 } // namespace bin |
62 } // namespace dart | 62 } // namespace dart |
63 | 63 |
64 #endif // BIN_LOCKERS_H_ | 64 #endif // RUNTIME_BIN_LOCKERS_H_ |
OLD | NEW |