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 "src/libplatform/worker-thread.h"
7 #include "include/v8-platform.h"
8 #include "src/libplatform/task-queue.h"
13 WorkerThread::WorkerThread(TaskQueue* queue)
14 : Thread(Options("V8 WorkerThread")), queue_(queue) {
19 WorkerThread::~WorkerThread() {
24 void WorkerThread::Run() {
25 while (Task* task = queue_->GetNext()) {
31 } // namespace platform