v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread Class Reference
Inheritance diagram for v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread:
Collaboration diagram for v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread:

Public Member Functions

 WorkerThread (DefaultWorkerThreadsTaskRunner *runner, base::Thread::Priority priority)
 
 ~WorkerThread () override
 
 WorkerThread (const WorkerThread &)=delete
 
WorkerThreadoperator= (const WorkerThread &)=delete
 
void Run () override
 
void Notify ()
 
- Public Member Functions inherited from v8::base::Thread
 Thread (const Options &options)
 
 Thread (const Thread &)=delete
 
Threadoperator= (const Thread &)=delete
 
virtual ~Thread ()
 
V8_WARN_UNUSED_RESULT bool Start ()
 
bool StartSynchronously ()
 
void Join ()
 
const char * name () const
 
PlatformDatadata ()
 
Priority priority () const
 
void NotifyStartedAndRun ()
 

Private Attributes

DefaultWorkerThreadsTaskRunnerrunner_
 
base::ConditionVariable condition_var_
 

Additional Inherited Members

- Public Types inherited from v8::base::Thread
enum class  Priority { kBestEffort , kUserVisible , kUserBlocking , kDefault }
 
using LocalStorageKey = int32_t
 
- Static Public Member Functions inherited from v8::base::Thread
static LocalStorageKey CreateThreadLocalKey ()
 
static void DeleteThreadLocalKey (LocalStorageKey key)
 
static void * GetThreadLocal (LocalStorageKey key)
 
static void SetThreadLocal (LocalStorageKey key, void *value)
 
static bool HasThreadLocal (LocalStorageKey key)
 
static void * GetExistingThreadLocal (LocalStorageKey key)
 
- Static Public Attributes inherited from v8::base::Thread
static const int kMaxThreadNameLength = 16
 

Detailed Description

Definition at line 50 of file default-worker-threads-task-runner.h.

Constructor & Destructor Documentation

◆ WorkerThread() [1/2]

v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::WorkerThread ( DefaultWorkerThreadsTaskRunner * runner,
base::Thread::Priority priority )
explicit

Definition at line 75 of file default-worker-threads-task-runner.cc.

Here is the call graph for this function:

◆ ~WorkerThread()

v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::~WorkerThread ( )
override

Definition at line 83 of file default-worker-threads-task-runner.cc.

◆ WorkerThread() [2/2]

v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::WorkerThread ( const WorkerThread & )
delete

Member Function Documentation

◆ Notify()

void v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Notify ( )

Definition at line 117 of file default-worker-threads-task-runner.cc.

◆ operator=()

WorkerThread & v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::operator= ( const WorkerThread & )
delete

◆ Run()

void v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::Run ( )
overridevirtual

Implements v8::base::Thread.

Definition at line 88 of file default-worker-threads-task-runner.cc.

Member Data Documentation

◆ condition_var_

base::ConditionVariable v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::condition_var_
private

Definition at line 66 of file default-worker-threads-task-runner.h.

◆ runner_

DefaultWorkerThreadsTaskRunner* v8::platform::DefaultWorkerThreadsTaskRunner::WorkerThread::runner_
private

Definition at line 65 of file default-worker-threads-task-runner.h.


The documentation for this class was generated from the following files: