| Index: runtime/bin/thread_pool.h
|
| diff --git a/runtime/bin/thread_pool.h b/runtime/bin/thread_pool.h
|
| index 24952e43ca1570eaff5306e90044b3ef4a4d3ede..10cbba44de042b72411d54c7517472e9b42bda09 100644
|
| --- a/runtime/bin/thread_pool.h
|
| +++ b/runtime/bin/thread_pool.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "bin/builtin.h"
|
| #include "platform/globals.h"
|
| +#include "platform/thread.h"
|
|
|
| // Declare the OS-specific types ahead of defining the generic classes.
|
| #if defined(TARGET_OS_LINUX)
|
| @@ -43,7 +44,7 @@ class TaskQueueEntry {
|
| // removed from the head.
|
| class TaskQueue {
|
| public:
|
| - TaskQueue();
|
| + TaskQueue() : terminate_(false), head_(NULL), tail_(NULL) {}
|
|
|
| void Insert(TaskQueueEntry* task);
|
| TaskQueueEntry* Remove();
|
| @@ -53,7 +54,7 @@ class TaskQueue {
|
| bool terminate_;
|
| TaskQueueEntry* head_;
|
| TaskQueueEntry* tail_;
|
| - TaskQueueData data_;
|
| + dart::Monitor monitor_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(TaskQueue);
|
| };
|
|
|