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

Unified Diff: runtime/bin/thread_pool_win.h

Issue 8983017: Start of thread pool implementation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from ager@ Created 8 years, 12 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
Index: runtime/bin/thread_pool_win.h
diff --git a/runtime/bin/thread_pool_win.h b/runtime/bin/thread_pool_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..f0f3eb92b99d4ee06f6e2df629bdc9d7d1377d33
--- /dev/null
+++ b/runtime/bin/thread_pool_win.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#ifndef BIN_THREAD_POOL_WIN_H_
+#define BIN_THREAD_POOL_WIN_H_
+
+#include "vm/globals.h"
+
+class TaskQueueData {
+ private:
+ TaskQueueData() { UNIMPLEMENTED(); }
+ ~TaskQueueData() {}
+
+ friend class TaskQueue;
+
+ DISALLOW_ALLOCATION();
+ DISALLOW_COPY_AND_ASSIGN(TaskQueueData);
+};
+
+
+class ThreadPoolData {
+ private:
+ static const int kMaxThreadPoolSize = 16;
+
+ ThreadPoolData() { UNIMPLEMENTED(); }
+ ~ThreadPoolData() {}
+
+ friend class ThreadPool;
+
+ DISALLOW_ALLOCATION();
+ DISALLOW_COPY_AND_ASSIGN(ThreadPoolData);
+};
+
+#endif // BIN_THREAD_POOL_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698