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

Classes

class  Task
 

Public Member Functions

 TaskRunner ()
 
 TaskRunner (const TaskRunner &)=delete
 
TaskRunneroperator= (const TaskRunner &)=delete
 
void Run ()
 
void Terminate ()
 
template<typename Functor >
auto Append (base::Semaphore *ready_semaphore, Functor &&task)
 

Private Member Functions

std::shared_ptr< TaskGetNext ()
 

Private Attributes

LockedQueue< std::shared_ptr< Task > > queue_
 
v8::base::Semaphore process_queue_semaphore_
 
int nested_loop_count_
 
std::atomic< boolis_terminated_
 

Detailed Description

Definition at line 25 of file gdb-server.cc.

Constructor & Destructor Documentation

◆ TaskRunner() [1/2]

v8::internal::wasm::gdb_server::TaskRunner::TaskRunner ( )
inline

Definition at line 49 of file gdb-server.cc.

◆ TaskRunner() [2/2]

v8::internal::wasm::gdb_server::TaskRunner::TaskRunner ( const TaskRunner & )
delete

Member Function Documentation

◆ Append()

template<typename Functor >
auto v8::internal::wasm::gdb_server::TaskRunner::Append ( base::Semaphore * ready_semaphore,
Functor && task )
inline

Definition at line 82 of file gdb-server.cc.

Here is the call graph for this function:

◆ GetNext()

std::shared_ptr< Task > v8::internal::wasm::gdb_server::TaskRunner::GetNext ( )
inlineprivate

Definition at line 88 of file gdb-server.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

TaskRunner & v8::internal::wasm::gdb_server::TaskRunner::operator= ( const TaskRunner & )
delete

◆ Run()

void v8::internal::wasm::gdb_server::TaskRunner::Run ( )
inline

Definition at line 59 of file gdb-server.cc.

Here is the call graph for this function:

◆ Terminate()

void v8::internal::wasm::gdb_server::TaskRunner::Terminate ( )
inline

Definition at line 72 of file gdb-server.cc.

Here is the call graph for this function:

Member Data Documentation

◆ is_terminated_

std::atomic<bool> v8::internal::wasm::gdb_server::TaskRunner::is_terminated_
private

Definition at line 105 of file gdb-server.cc.

◆ nested_loop_count_

int v8::internal::wasm::gdb_server::TaskRunner::nested_loop_count_
private

Definition at line 104 of file gdb-server.cc.

◆ process_queue_semaphore_

v8::base::Semaphore v8::internal::wasm::gdb_server::TaskRunner::process_queue_semaphore_
private

Definition at line 103 of file gdb-server.cc.

◆ queue_

LockedQueue<std::shared_ptr<Task> > v8::internal::wasm::gdb_server::TaskRunner::queue_
private

Definition at line 102 of file gdb-server.cc.


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