v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
worker-thread.h
Go to the documentation of this file.
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.
4
5#ifndef V8_LIBPLATFORM_WORKER_THREAD_H_
6#define V8_LIBPLATFORM_WORKER_THREAD_H_
7
8#include <queue>
9
13
14namespace v8 {
15
16namespace platform {
17
18class TaskQueue;
19
21 public:
22 explicit WorkerThread(TaskQueue* queue);
23 ~WorkerThread() override;
24
25 WorkerThread(const WorkerThread&) = delete;
27
28 // Thread implementation.
29 void Run() override;
30
31 private:
33};
34
35} // namespace platform
36} // namespace v8
37
38
39#endif // V8_LIBPLATFORM_WORKER_THREAD_H_
WorkerThread & operator=(const WorkerThread &)=delete
WorkerThread(const WorkerThread &)=delete
#define V8_PLATFORM_EXPORT
#define NON_EXPORTED_BASE(code)