![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <default-job.h>
Public Member Functions | |
DefaultJobHandle (std::shared_ptr< DefaultJobState > state) | |
~DefaultJobHandle () override | |
DefaultJobHandle (const DefaultJobHandle &)=delete | |
DefaultJobHandle & | operator= (const DefaultJobHandle &)=delete |
void | NotifyConcurrencyIncrease () override |
void | Join () override |
void | Cancel () override |
void | CancelAndDetach () override |
bool | IsActive () override |
bool | IsValid () override |
bool | UpdatePriorityEnabled () const override |
void | UpdatePriority (TaskPriority) override |
![]() | |
virtual | ~JobHandle ()=default |
Private Attributes | |
std::shared_ptr< DefaultJobState > | state_ |
Definition at line 104 of file default-job.h.
|
explicit |
Definition at line 225 of file default-job.cc.
|
override |
Definition at line 228 of file default-job.cc.
|
delete |
|
overridevirtual |
Forces all existing workers to yield ASAP. Waits until they have all returned from the Job's callback before returning.
Implements v8::JobHandle.
Definition at line 234 of file default-job.cc.
|
overridevirtual |
Implements v8::JobHandle.
Definition at line 239 of file default-job.cc.
|
overridevirtual |
Returns true if there's any work pending or any worker running.
Implements v8::JobHandle.
Definition at line 244 of file default-job.cc.
|
inlineoverridevirtual |
Returns true if associated with a Job and other methods may be called. Returns false after Join() or Cancel() was called. This may return true even if no workers are running and IsCompleted() returns true
Implements v8::JobHandle.
Definition at line 120 of file default-job.h.
|
overridevirtual |
Contributes to the job on this thread. Doesn't return until all tasks have completed and max concurrency becomes 0. When Join() is called and max concurrency reaches 0, it should not increase again. This also promotes this Job's priority to be at least as high as the calling thread's priority.
Implements v8::JobHandle.
Definition at line 230 of file default-job.cc.
|
inlineoverridevirtual |
Notifies the scheduler that max concurrency was increased, and the number of worker should be adjusted accordingly. See Platform::PostJob() for more details.
Implements v8::JobHandle.
Definition at line 112 of file default-job.h.
|
delete |
|
overridevirtual |
Update this Job's priority.
Reimplemented from v8::JobHandle.
Definition at line 246 of file default-job.cc.
|
inlineoverridevirtual |
Returns true if job priority can be changed.
Reimplemented from v8::JobHandle.
Definition at line 122 of file default-job.h.
|
private |
Definition at line 127 of file default-job.h.