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

Public Member Functions

 WorkerThread (std::shared_ptr< Worker > worker, base::Thread::Priority priority)
 
void Run () override
 
- 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

std::shared_ptr< Workerworker_
 

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 246 of file d8.h.

Constructor & Destructor Documentation

◆ WorkerThread()

v8::Worker::WorkerThread::WorkerThread ( std::shared_ptr< Worker > worker,
base::Thread::Priority priority )
inlineexplicit

Definition at line 248 of file d8.h.

Member Function Documentation

◆ Run()

void v8::Worker::WorkerThread::Run ( )
overridevirtual

Implements v8::base::Thread.

Definition at line 5219 of file d8.cc.

Here is the call graph for this function:

Member Data Documentation

◆ worker_

std::shared_ptr<Worker> v8::Worker::WorkerThread::worker_
private

Definition at line 256 of file d8.h.


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