Node.js  v8.x
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine
NodePlatform Class Reference

#include <node_platform.h>

Inheritance diagram for NodePlatform:
[legend]
Collaboration diagram for NodePlatform:
[legend]

Public Member Functions

 NodePlatform (int thread_pool_size, uv_loop_t *loop, v8::TracingController *tracing_controller)
 
virtual ~NodePlatform ()
 
void DrainBackgroundTasks ()
 
void FlushForegroundTasksInternal ()
 
void Shutdown ()
 
size_t NumberOfAvailableBackgroundThreads () override
 
void CallOnBackgroundThread (v8::Task *task, ExpectedRuntime expected_runtime) override
 
void CallOnForegroundThread (v8::Isolate *isolate, v8::Task *task) override
 
void CallDelayedOnForegroundThread (v8::Isolate *isolate, v8::Task *task, double delay_in_seconds) override
 
bool IdleTasksEnabled (v8::Isolate *isolate) override
 
double MonotonicallyIncreasingTime () override
 
v8::TracingController * GetTracingController () override
 

Detailed Description

Definition at line 35 of file node_platform.h.

Constructor & Destructor Documentation

◆ NodePlatform()

NodePlatform ( int  thread_pool_size,
uv_loop_t *  loop,
v8::TracingController *  tracing_controller 
)

Definition at line 26 of file node_platform.cc.

References t.

◆ ~NodePlatform()

virtual ~NodePlatform ( )
inlinevirtual

Definition at line 39 of file node_platform.h.

Member Function Documentation

◆ CallDelayedOnForegroundThread()

void CallDelayedOnForegroundThread ( v8::Isolate *  isolate,
v8::Task *  task,
double  delay_in_seconds 
)
override

Definition at line 109 of file node_platform.cc.

References TaskQueue< T >::Push().

◆ CallOnBackgroundThread()

void CallOnBackgroundThread ( v8::Task *  task,
ExpectedRuntime  expected_runtime 
)
override

Definition at line 99 of file node_platform.cc.

References TaskQueue< T >::Push().

◆ CallOnForegroundThread()

void CallOnForegroundThread ( v8::Isolate *  isolate,
v8::Task *  task 
)
override

Definition at line 104 of file node_platform.cc.

References TaskQueue< T >::Push().

◆ DrainBackgroundTasks()

void DrainBackgroundTasks ( )

◆ FlushForegroundTasksInternal()

void FlushForegroundTasksInternal ( )

Definition at line 80 of file node_platform.cc.

References TaskQueue< T >::Pop().

Referenced by NodePlatform::DrainBackgroundTasks().

◆ GetTracingController()

TracingController * GetTracingController ( )
override

Definition at line 124 of file node_platform.cc.

◆ IdleTasksEnabled()

bool IdleTasksEnabled ( v8::Isolate *  isolate)
override

Definition at line 117 of file node_platform.cc.

◆ MonotonicallyIncreasingTime()

double MonotonicallyIncreasingTime ( )
override

Definition at line 119 of file node_platform.cc.

◆ NumberOfAvailableBackgroundThreads()

size_t NumberOfAvailableBackgroundThreads ( )
override

Definition at line 62 of file node_platform.cc.

◆ Shutdown()

void Shutdown ( )

Definition at line 48 of file node_platform.cc.

References TaskQueue< T >::Stop().


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