a6071e0880
Make one global thread pool instead of a thread pool for each eventhandler (i.e. isolate). Also: * Added handler function for thread pool tasks. * Added thread pool shutdown. * Added a simple test. R=ager@google.com BUG= TEST= Review URL: http://codereview.chromium.org//9112013 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3079 260f80e4-7a28-3924-810f-c04153c831b5
36 lines
641 B
C++
36 lines
641 B
C++
// 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.
|
|
|
|
#include "bin/thread_pool.h"
|
|
|
|
TaskQueue::TaskQueue() : terminate_(false), head_(NULL), tail_(NULL) {
|
|
UNIMPLEMENTED();
|
|
}
|
|
|
|
|
|
void TaskQueue::Insert(TaskQueueEntry* entry) {
|
|
UNIMPLEMENTED();
|
|
}
|
|
|
|
|
|
void TaskQueue::Shutdown() {
|
|
UNIMPLEMENTED();
|
|
}
|
|
|
|
|
|
TaskQueueEntry* TaskQueue::Remove() {
|
|
UNIMPLEMENTED();
|
|
return NULL;
|
|
}
|
|
|
|
|
|
void ThreadPool::Start() {
|
|
UNIMPLEMENTED();
|
|
}
|
|
|
|
|
|
void ThreadPool::Shutdown() {
|
|
UNIMPLEMENTED();
|
|
}
|