| 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 RUNTIME_VM_OS_THREAD_H_ | 5 #ifndef RUNTIME_VM_OS_THREAD_H_ |
| 6 #define RUNTIME_VM_OS_THREAD_H_ | 6 #define RUNTIME_VM_OS_THREAD_H_ |
| 7 | 7 |
| 8 #include "platform/globals.h" | 8 #include "platform/globals.h" |
| 9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| 11 | 11 |
| 12 // Declare the OS-specific types ahead of defining the generic classes. | 12 // Declare the OS-specific types ahead of defining the generic classes. |
| 13 #if defined(TARGET_OS_ANDROID) | 13 #if defined(HOST_OS_ANDROID) |
| 14 #include "vm/os_thread_android.h" | 14 #include "vm/os_thread_android.h" |
| 15 #elif defined(TARGET_OS_FUCHSIA) | 15 #elif defined(HOST_OS_FUCHSIA) |
| 16 #include "vm/os_thread_fuchsia.h" | 16 #include "vm/os_thread_fuchsia.h" |
| 17 #elif defined(TARGET_OS_LINUX) | 17 #elif defined(HOST_OS_LINUX) |
| 18 #include "vm/os_thread_linux.h" | 18 #include "vm/os_thread_linux.h" |
| 19 #elif defined(TARGET_OS_MACOS) | 19 #elif defined(HOST_OS_MACOS) |
| 20 #include "vm/os_thread_macos.h" | 20 #include "vm/os_thread_macos.h" |
| 21 #elif defined(TARGET_OS_WINDOWS) | 21 #elif defined(HOST_OS_WINDOWS) |
| 22 #include "vm/os_thread_win.h" | 22 #include "vm/os_thread_win.h" |
| 23 #else | 23 #else |
| 24 #error Unknown target os. | 24 #error Unknown target os. |
| 25 #endif | 25 #endif |
| 26 | 26 |
| 27 namespace dart { | 27 namespace dart { |
| 28 | 28 |
| 29 // Forward declarations. | 29 // Forward declarations. |
| 30 class Log; | 30 class Log; |
| 31 class Mutex; | 31 class Mutex; |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 friend class SafepointMonitorLocker; | 353 friend class SafepointMonitorLocker; |
| 354 friend void Dart_TestMonitor(); | 354 friend void Dart_TestMonitor(); |
| 355 DISALLOW_COPY_AND_ASSIGN(Monitor); | 355 DISALLOW_COPY_AND_ASSIGN(Monitor); |
| 356 }; | 356 }; |
| 357 | 357 |
| 358 | 358 |
| 359 } // namespace dart | 359 } // namespace dart |
| 360 | 360 |
| 361 | 361 |
| 362 #endif // RUNTIME_VM_OS_THREAD_H_ | 362 #endif // RUNTIME_VM_OS_THREAD_H_ |
| OLD | NEW |