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_WORKER_THREAD_H_ | 5 #ifndef V8_LIBPLATFORM_WORKER_THREAD_H_ |
6 #define V8_LIBPLATFORM_WORKER_THREAD_H_ | 6 #define V8_LIBPLATFORM_WORKER_THREAD_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "src/base/macros.h" | 10 #include "src/base/macros.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 void Run() override; | 25 void Run() override; |
26 | 26 |
27 private: | 27 private: |
28 friend class QuitTask; | 28 friend class QuitTask; |
29 | 29 |
30 TaskQueue* queue_; | 30 TaskQueue* queue_; |
31 | 31 |
32 DISALLOW_COPY_AND_ASSIGN(WorkerThread); | 32 DISALLOW_COPY_AND_ASSIGN(WorkerThread); |
33 }; | 33 }; |
34 | 34 |
35 } } // namespace v8::platform | 35 } // namespace platform |
| 36 } // namespace v8 |
36 | 37 |
37 | 38 |
38 #endif // V8_LIBPLATFORM_WORKER_THREAD_H_ | 39 #endif // V8_LIBPLATFORM_WORKER_THREAD_H_ |
OLD | NEW |