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

Side by Side Diff: src/libplatform/worker-thread.cc

Issue 304153016: Use full include paths everywhere (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/libplatform/worker-thread.h ('k') | src/list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "worker-thread.h" 5 #include "src/libplatform/worker-thread.h"
6 6
7 #include "../../include/v8-platform.h" 7 #include "include/v8-platform.h"
8 #include "task-queue.h" 8 #include "src/libplatform/task-queue.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 WorkerThread::WorkerThread(TaskQueue* queue) 13 WorkerThread::WorkerThread(TaskQueue* queue)
14 : Thread("V8 WorkerThread"), queue_(queue) { 14 : Thread("V8 WorkerThread"), queue_(queue) {
15 Start(); 15 Start();
16 } 16 }
17 17
18 18
19 WorkerThread::~WorkerThread() { 19 WorkerThread::~WorkerThread() {
20 Join(); 20 Join();
21 } 21 }
22 22
23 23
24 void WorkerThread::Run() { 24 void WorkerThread::Run() {
25 while (Task* task = queue_->GetNext()) { 25 while (Task* task = queue_->GetNext()) {
26 task->Run(); 26 task->Run();
27 delete task; 27 delete task;
28 } 28 }
29 } 29 }
30 30
31 } } // namespace v8::internal 31 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/libplatform/worker-thread.h ('k') | src/list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698