Index: runtime/bin/thread_pool.h |
diff --git a/runtime/bin/thread_pool.h b/runtime/bin/thread_pool.h |
index 10cbba44de042b72411d54c7517472e9b42bda09..ad4affac47ed83eb01859f487f2fd836558ee7ae 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 args); |
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); |
}; |