| 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_POOL_H_ | 5 #ifndef BIN_THREAD_POOL_H_ |
| 6 #define BIN_THREAD_POOL_H_ | 6 #define BIN_THREAD_POOL_H_ |
| 7 | 7 |
| 8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
| 9 #include "bin/globals.h" | 9 |
| 10 #include "platform/globals.h" |
| 10 | 11 |
| 11 // Declare the OS-specific types ahead of defining the generic classes. | 12 // Declare the OS-specific types ahead of defining the generic classes. |
| 12 #if defined(TARGET_OS_LINUX) | 13 #if defined(TARGET_OS_LINUX) |
| 13 #include "bin/thread_pool_linux.h" | 14 #include "bin/thread_pool_linux.h" |
| 14 #elif defined(TARGET_OS_MACOS) | 15 #elif defined(TARGET_OS_MACOS) |
| 15 #include "bin/thread_pool_macos.h" | 16 #include "bin/thread_pool_macos.h" |
| 16 #elif defined(TARGET_OS_WINDOWS) | 17 #elif defined(TARGET_OS_WINDOWS) |
| 17 #include "bin/thread_pool_win.h" | 18 #include "bin/thread_pool_win.h" |
| 18 #else | 19 #else |
| 19 #error Unknown target os. | 20 #error Unknown target os. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 static void* Main(void* args); | 73 static void* Main(void* args); |
| 73 | 74 |
| 74 TaskQueue queue; | 75 TaskQueue queue; |
| 75 int size_; // Number of threads. | 76 int size_; // Number of threads. |
| 76 ThreadPoolData data_; | 77 ThreadPoolData data_; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(ThreadPool); | 79 DISALLOW_COPY_AND_ASSIGN(ThreadPool); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 #endif // BIN_THREAD_POOL_H_ | 82 #endif // BIN_THREAD_POOL_H_ |
| OLD | NEW |