V8  latest master commit
V8 is Google's open source JavaScript engine
v8::JobDelegate Class Referenceabstract

#include <v8-platform.h>

Public Member Functions

virtual bool ShouldYield ()=0
 
virtual void NotifyConcurrencyIncrease ()=0
 

Detailed Description

Delegate that's passed to Job's worker task, providing an entry point to communicate with the scheduler.

Definition at line 142 of file v8-platform.h.

Member Function Documentation

◆ NotifyConcurrencyIncrease()

virtual void v8::JobDelegate::NotifyConcurrencyIncrease ( )
pure virtual

Notifies the scheduler that max concurrency was increased, and the number of worker should be adjusted accordingly. See Platform::PostJob() for more details.

◆ ShouldYield()

virtual bool v8::JobDelegate::ShouldYield ( )
pure virtual

Returns true if this thread should return from the worker task on the current thread ASAP. Workers should periodically invoke ShouldYield (or YieldIfNeeded()) as often as is reasonable.


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