#include <v8-platform.h>
Handle returned when posting a Job. Provides methods to control execution of the posted Job.
Definition at line 241 of file v8-platform.h.
◆ ~JobHandle()
◆ Cancel()
Forces all existing workers to yield ASAP. Waits until they have all returned from the Job's callback before returning.
◆ CancelAndDetach()
virtual void CancelAndDetach |
( |
| ) |
|
|
pure virtual |
◆ IsActive()
virtual bool IsActive |
( |
| ) |
|
|
pure virtual |
Returns true if there's any work pending or any worker running.
◆ IsValid()
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
◆ Join()
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.
◆ NotifyConcurrencyIncrease()
virtual void 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.
◆ UpdatePriority()
◆ UpdatePriorityEnabled()
virtual bool UpdatePriorityEnabled |
( |
| ) |
const |
|
inlinevirtual |
Returns true if job priority can be changed.
Definition at line 289 of file v8-platform.h.
The documentation for this class was generated from the following file: