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
10
#include "
include/libplatform/libplatform-export.h
"
11
#include "
src/base/compiler-specific.h
"
12
#include "
src/base/platform/platform.h
"
13
14
namespace
v8
{
15
16
namespace
platform {
17
18
class
TaskQueue;
19
20
class
V8_PLATFORM_EXPORT
WorkerThread
:
public
NON_EXPORTED_BASE
(base::Thread) {
21
public
:
22
explicit
WorkerThread
(
TaskQueue
* queue);
23
~WorkerThread
()
override
;
24
25
WorkerThread
(
const
WorkerThread
&) =
delete
;
26
WorkerThread
&
operator=
(
const
WorkerThread
&) =
delete
;
27
28
// Thread implementation.
29
void
Run()
override
;
30
31
private
:
32
TaskQueue
*
queue_
;
33
};
34
35
}
// namespace platform
36
}
// namespace v8
37
38
39
#endif
// V8_LIBPLATFORM_WORKER_THREAD_H_
v8::platform::TaskQueue
Definition
task-queue.h:22
v8::platform::WorkerThread
Definition
worker-thread.h:20
v8::platform::WorkerThread::operator=
WorkerThread & operator=(const WorkerThread &)=delete
v8::platform::WorkerThread::WorkerThread
WorkerThread(const WorkerThread &)=delete
v8::platform::WorkerThread::queue_
TaskQueue * queue_
Definition
worker-thread.h:32
libplatform-export.h
V8_PLATFORM_EXPORT
#define V8_PLATFORM_EXPORT
Definition
libplatform-export.h:24
v8
Definition
api-arguments-inl.h:19
compiler-specific.h
NON_EXPORTED_BASE
#define NON_EXPORTED_BASE(code)
Definition
compiler-specific.h:93
platform.h
src
libplatform
worker-thread.h
Generated on Sun Apr 6 2025 21:08:54 for v8 by
1.12.0