| 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_THREAD_H_ | 5 #ifndef BIN_THREAD_H_ |
| 6 #define BIN_THREAD_H_ | 6 #define BIN_THREAD_H_ |
| 7 | 7 |
| 8 #include "platform/globals.h" | 8 #include "platform/globals.h" |
| 9 | 9 |
| 10 namespace dart { |
| 11 namespace bin { |
| 12 class Thread; |
| 13 class Mutex; |
| 14 class Monitor; |
| 15 } |
| 16 } |
| 17 |
| 10 // Declare the OS-specific types ahead of defining the generic classes. | 18 // Declare the OS-specific types ahead of defining the generic classes. |
| 11 #if defined(TARGET_OS_ANDROID) | 19 #if defined(TARGET_OS_ANDROID) |
| 12 #include "bin/thread_android.h" | 20 #include "bin/thread_android.h" |
| 13 #elif defined(TARGET_OS_LINUX) | 21 #elif defined(TARGET_OS_LINUX) |
| 14 #include "bin/thread_linux.h" | 22 #include "bin/thread_linux.h" |
| 15 #elif defined(TARGET_OS_MACOS) | 23 #elif defined(TARGET_OS_MACOS) |
| 16 #include "bin/thread_macos.h" | 24 #include "bin/thread_macos.h" |
| 17 #elif defined(TARGET_OS_WINDOWS) | 25 #elif defined(TARGET_OS_WINDOWS) |
| 18 #include "bin/thread_win.h" | 26 #include "bin/thread_win.h" |
| 19 #else | 27 #else |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 104 |
| 97 DISALLOW_COPY_AND_ASSIGN(Monitor); | 105 DISALLOW_COPY_AND_ASSIGN(Monitor); |
| 98 }; | 106 }; |
| 99 | 107 |
| 100 | 108 |
| 101 } // namespace bin | 109 } // namespace bin |
| 102 } // namespace dart | 110 } // namespace dart |
| 103 | 111 |
| 104 | 112 |
| 105 #endif // BIN_THREAD_H_ | 113 #endif // BIN_THREAD_H_ |
| OLD | NEW |