OLD | NEW |
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 #ifndef V8_LIBPLATFORM_TASK_QUEUE_H_ | 5 #ifndef V8_LIBPLATFORM_TASK_QUEUE_H_ |
6 #define V8_LIBPLATFORM_TASK_QUEUE_H_ | 6 #define V8_LIBPLATFORM_TASK_QUEUE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "../base/macros.h" | 10 #include "src/base/macros.h" |
11 #include "../platform/mutex.h" | 11 #include "src/platform/mutex.h" |
12 #include "../platform/semaphore.h" | 12 #include "src/platform/semaphore.h" |
13 | 13 |
14 namespace v8 { | 14 namespace v8 { |
15 | 15 |
16 class Task; | 16 class Task; |
17 | 17 |
18 namespace internal { | 18 namespace internal { |
19 | 19 |
20 class TaskQueue { | 20 class TaskQueue { |
21 public: | 21 public: |
22 TaskQueue(); | 22 TaskQueue(); |
(...skipping 15 matching lines...) Expand all Loading... |
38 std::queue<Task*> task_queue_; | 38 std::queue<Task*> task_queue_; |
39 bool terminated_; | 39 bool terminated_; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(TaskQueue); | 41 DISALLOW_COPY_AND_ASSIGN(TaskQueue); |
42 }; | 42 }; |
43 | 43 |
44 } } // namespace v8::internal | 44 } } // namespace v8::internal |
45 | 45 |
46 | 46 |
47 #endif // V8_LIBPLATFORM_TASK_QUEUE_H_ | 47 #endif // V8_LIBPLATFORM_TASK_QUEUE_H_ |
OLD | NEW |