v8  8.6.395 (node 15.0.1)
V8 is Google's open source JavaScript engine
DefaultTaskRunner Class Referencefinal

#include <default-platform.h>

Inheritance diagram for DefaultTaskRunner:
Collaboration diagram for DefaultTaskRunner:

Public Member Functions

 DefaultTaskRunner ()=default
 
 DefaultTaskRunner (const DefaultTaskRunner &)=delete
 
DefaultTaskRunneroperator= (const DefaultTaskRunner &)=delete
 
void PostTask (std::unique_ptr< cppgc::Task > task) override
 
void PostNonNestableTask (std::unique_ptr< cppgc::Task > task) override
 
void PostDelayedTask (std::unique_ptr< cppgc::Task > task, double) override
 
void PostNonNestableDelayedTask (std::unique_ptr< cppgc::Task > task, double) override
 
void PostIdleTask (std::unique_ptr< cppgc::IdleTask > task) override
 
bool IdleTasksEnabled () override
 
bool RunSingleTask ()
 
bool RunSingleIdleTask (double duration_in_seconds)
 
void RunUntilIdle ()
 
- Public Member Functions inherited from TaskRunner
virtual void PostTask (std::unique_ptr< Task > task)=0
 
virtual void PostNonNestableTask (std::unique_ptr< Task > task)
 
virtual void PostDelayedTask (std::unique_ptr< Task > task, double delay_in_seconds)=0
 
virtual void PostNonNestableDelayedTask (std::unique_ptr< Task > task, double delay_in_seconds)
 
virtual void PostIdleTask (std::unique_ptr< IdleTask > task)=0
 
virtual bool NonNestableTasksEnabled () const
 
virtual bool NonNestableDelayedTasksEnabled () const
 
 TaskRunner ()=default
 
virtual ~TaskRunner ()=default
 
 TaskRunner (const TaskRunner &)=delete
 
TaskRunneroperator= (const TaskRunner &)=delete
 

Detailed Description

Default task runner implementation. Keep posted tasks in a list that can be processed by calling RunSingleTask() or RunUntilIdle().

Definition at line 21 of file default-platform.h.

Constructor & Destructor Documentation

◆ DefaultTaskRunner() [1/2]

DefaultTaskRunner ( )
default

◆ DefaultTaskRunner() [2/2]

DefaultTaskRunner ( const DefaultTaskRunner )
delete

Member Function Documentation

◆ IdleTasksEnabled()

bool IdleTasksEnabled ( )
inlineoverridevirtual

Returns true if idle tasks are enabled for this TaskRunner.

Implements TaskRunner.

Definition at line 35 of file default-platform.h.

◆ operator=()

DefaultTaskRunner& operator= ( const DefaultTaskRunner )
delete

◆ PostDelayedTask()

void PostDelayedTask ( std::unique_ptr< cppgc::Task task,
double   
)
override

◆ PostIdleTask()

void PostIdleTask ( std::unique_ptr< cppgc::IdleTask task)
override

◆ PostNonNestableDelayedTask()

void PostNonNestableDelayedTask ( std::unique_ptr< cppgc::Task task,
double   
)
override

◆ PostNonNestableTask()

void PostNonNestableTask ( std::unique_ptr< cppgc::Task task)
override

◆ PostTask()

void PostTask ( std::unique_ptr< cppgc::Task task)
override

◆ RunSingleIdleTask()

bool RunSingleIdleTask ( double  duration_in_seconds)

◆ RunSingleTask()

bool RunSingleTask ( )

◆ RunUntilIdle()

void RunUntilIdle ( )

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