v8
8.6.395 (node 15.0.1)
V8 is Google's open source JavaScript engine
|
#include <default-platform.h>
Public Member Functions | |
DefaultPlatform () | |
~DefaultPlatform () noexcept override | |
cppgc::PageAllocator * | GetPageAllocator () final |
double | MonotonicallyIncreasingTime () final |
std::shared_ptr< cppgc::TaskRunner > | GetForegroundTaskRunner () final |
std::unique_ptr< cppgc::JobHandle > | PostJob (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< JobHandle > | PostJob (TaskPriority priority, std::unique_ptr< JobTask > job_task) |
Default platform implementation that uses std::thread for spawning job tasks.
Definition at line 50 of file default-platform.h.
DefaultPlatform | ( | ) |
|
overridenoexcept |
|
finalvirtual |
|
finalvirtual |
Returns the allocator used by cppgc to allocate its heap and various support structures.
Implements Platform.
|
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.
|
final |
void WaitAllBackgroundTasks | ( | ) |
void WaitAllForegroundTasks | ( | ) |