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

#include <default-platform.h>

Inheritance diagram for DefaultPlatform:
Collaboration diagram for DefaultPlatform:

Public Member Functions

 DefaultPlatform ()
 
 ~DefaultPlatform () noexcept override
 
cppgc::PageAllocatorGetPageAllocator () final
 
double MonotonicallyIncreasingTime () final
 
std::shared_ptr< cppgc::TaskRunnerGetForegroundTaskRunner () final
 
std::unique_ptr< cppgc::JobHandlePostJob (cppgc::TaskPriority priority, std::unique_ptr< cppgc::JobTask > job_task) final
 
void WaitAllForegroundTasks ()
 
void WaitAllBackgroundTasks ()
 
- Public Member Functions inherited from Platform
virtual ~Platform ()=default
 
virtual std::unique_ptr< JobHandlePostJob (TaskPriority priority, std::unique_ptr< JobTask > job_task)
 

Detailed Description

Default platform implementation that uses std::thread for spawning job tasks.

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

Constructor & Destructor Documentation

◆ DefaultPlatform()

◆ ~DefaultPlatform()

~DefaultPlatform ( )
overridenoexcept

Member Function Documentation

◆ GetForegroundTaskRunner()

std::shared_ptr<cppgc::TaskRunner> GetForegroundTaskRunner ( )
finalvirtual

Foreground task runner that should be used by a Heap.

Reimplemented from Platform.

◆ GetPageAllocator()

cppgc::PageAllocator* GetPageAllocator ( )
finalvirtual

Returns the allocator used by cppgc to allocate its heap and various support structures.

Implements Platform.

◆ MonotonicallyIncreasingTime()

double MonotonicallyIncreasingTime ( )
finalvirtual

Monotonically increasing time in seconds from an arbitrary fixed point in the past. This function is expected to return at least millisecond-precision values. For this reason, it is recommended that the fixed point be no further in the past than the epoch.

Implements Platform.

◆ PostJob()

std::unique_ptr<cppgc::JobHandle> PostJob ( cppgc::TaskPriority  priority,
std::unique_ptr< cppgc::JobTask job_task 
)
final

◆ WaitAllBackgroundTasks()

void WaitAllBackgroundTasks ( )

◆ WaitAllForegroundTasks()

void WaitAllForegroundTasks ( )

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