v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::DelayedTasksPlatform::DelayedJob Class Referencefinal
Inheritance diagram for v8::DelayedTasksPlatform::DelayedJob:
Collaboration diagram for v8::DelayedTasksPlatform::DelayedJob:

Public Member Functions

 DelayedJob (std::unique_ptr< JobTask > job_task, int32_t delay_ms)
 
void Run (JobDelegate *delegate) override
 
size_t GetMaxConcurrency (size_t worker_count) const override
 
- Public Member Functions inherited from v8::JobTask
virtual ~JobTask ()=default
 

Private Attributes

std::unique_ptr< JobTaskjob_task_
 
int32_t delay_ms_
 

Detailed Description

Definition at line 290 of file d8-platforms.cc.

Constructor & Destructor Documentation

◆ DelayedJob()

v8::DelayedTasksPlatform::DelayedJob::DelayedJob ( std::unique_ptr< JobTask > job_task,
int32_t delay_ms )
inline

Definition at line 292 of file d8-platforms.cc.

Member Function Documentation

◆ GetMaxConcurrency()

size_t v8::DelayedTasksPlatform::DelayedJob::GetMaxConcurrency ( size_t worker_count) const
inlineoverridevirtual

Controls the maximum number of threads calling Run() concurrently, given the number of threads currently assigned to this job and executing Run(). Run() is only invoked if the number of threads previously running Run() was less than the value returned. In general, this should return the latest number of incomplete work items (smallest unit of work) left to process, including items that are currently in progress. |worker_count| is the number of threads currently assigned to this job which some callers may need to determine their return value. Since GetMaxConcurrency() is a leaf function, it must not call back any JobHandle methods.

Implements v8::JobTask.

Definition at line 304 of file d8-platforms.cc.

◆ Run()

void v8::DelayedTasksPlatform::DelayedJob::Run ( JobDelegate * delegate)
inlineoverridevirtual

Implements v8::JobTask.

Definition at line 295 of file d8-platforms.cc.

Here is the call graph for this function:

Member Data Documentation

◆ delay_ms_

int32_t v8::DelayedTasksPlatform::DelayedJob::delay_ms_
private

Definition at line 310 of file d8-platforms.cc.

◆ job_task_

std::unique_ptr<JobTask> v8::DelayedTasksPlatform::DelayedJob::job_task_
private

Definition at line 309 of file d8-platforms.cc.


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