Chromium Code Reviews| Index: runtime/bin/thread_pool.h |
| diff --git a/runtime/bin/thread_pool.h b/runtime/bin/thread_pool.h |
| index 10cbba44de042b72411d54c7517472e9b42bda09..89c78b915efb4ff3047c5bed3d6fcbe99e655ce3 100644 |
| --- a/runtime/bin/thread_pool.h |
| +++ b/runtime/bin/thread_pool.h |
| @@ -9,18 +9,6 @@ |
| #include "platform/globals.h" |
| #include "platform/thread.h" |
| -// Declare the OS-specific types ahead of defining the generic classes. |
| -#if defined(TARGET_OS_LINUX) |
| -#include "bin/thread_pool_linux.h" |
| -#elif defined(TARGET_OS_MACOS) |
| -#include "bin/thread_pool_macos.h" |
| -#elif defined(TARGET_OS_WINDOWS) |
| -#include "bin/thread_pool_win.h" |
| -#else |
| -#error Unknown target os. |
| -#endif |
| - |
| - |
| typedef void* Task; |
| @@ -77,7 +65,7 @@ class ThreadPool { |
| private: |
| Task WaitForTask(); |
| - static void* Main(void* args); |
| + static void Main(uword); |
|
Mads Ager (google)
2012/01/20 12:35:34
uword args?
Søren Gjesse
2012/01/20 13:25:45
Done.
|
| TaskQueue queue_; |
| // TODO(sgjesse): Move the monitor in TaskQueue to ThreadPool and |
| @@ -85,7 +73,7 @@ class ThreadPool { |
| bool terminate_; |
| int size_; // Number of threads. |
| TaskHandler task_handler_; |
| - ThreadPoolData data_; |
| + dart::ThreadHandle* threads_; |
| DISALLOW_COPY_AND_ASSIGN(ThreadPool); |
| }; |