Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1173)

Unified Diff: runtime/bin/thread_pool.h

Issue 9231020: Use platform implementation of Monitor in thread pool (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/thread_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | runtime/bin/thread_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698