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 VM_OS_THREAD_H_ | 5 #ifndef VM_OS_THREAD_H_ |
6 #define VM_OS_THREAD_H_ | 6 #define 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(TARGET_OS_ANDROID) |
14 #include "vm/os_thread_android.h" | 14 #include "vm/os_thread_android.h" |
15 #elif defined(TARGET_OS_LINUX) | 15 #elif defined(TARGET_OS_LINUX) |
16 #include "vm/os_thread_linux.h" | 16 #include "vm/os_thread_linux.h" |
17 #elif defined(TARGET_OS_MACOS) | 17 #elif defined(TARGET_OS_MACOS) |
18 #include "vm/os_thread_macos.h" | 18 #include "vm/os_thread_macos.h" |
| 19 #elif defined(TARGET_OS_OPENBSD) |
| 20 #include "vm/os_thread_openbsd.h" |
19 #elif defined(TARGET_OS_WINDOWS) | 21 #elif defined(TARGET_OS_WINDOWS) |
20 #include "vm/os_thread_win.h" | 22 #include "vm/os_thread_win.h" |
21 #else | 23 #else |
22 #error Unknown target os. | 24 #error Unknown target os. |
23 #endif | 25 #endif |
24 | 26 |
25 namespace dart { | 27 namespace dart { |
26 | 28 |
27 // Forward declarations. | 29 // Forward declarations. |
28 class Log; | 30 class Log; |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 #endif // defined(DEBUG) | 329 #endif // defined(DEBUG) |
328 | 330 |
329 DISALLOW_COPY_AND_ASSIGN(Monitor); | 331 DISALLOW_COPY_AND_ASSIGN(Monitor); |
330 }; | 332 }; |
331 | 333 |
332 | 334 |
333 } // namespace dart | 335 } // namespace dart |
334 | 336 |
335 | 337 |
336 #endif // VM_OS_THREAD_H_ | 338 #endif // VM_OS_THREAD_H_ |
OLD | NEW |