1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "worker-thread.h"
7 // TODO(jochen): We should have our own version of checks.h.
9 #include "../../include/v8-platform.h"
10 #include "task-queue.h"
15 WorkerThread::WorkerThread(TaskQueue* queue)
16 : Thread("V8 WorkerThread"), queue_(queue) {
21 WorkerThread::~WorkerThread() {
26 void WorkerThread::Run() {
27 while (Task* task = queue_->GetNext()) {
33 } } // namespace v8::internal