#include <default-job.h>
Definition at line 22 of file default-job.h.
◆ JobDelegate()
v8::platform::DefaultJobState::JobDelegate::JobDelegate |
( |
DefaultJobState * | outer, |
|
|
bool | is_joining_thread = false ) |
|
inlineexplicit |
◆ ~JobDelegate()
v8::platform::DefaultJobState::JobDelegate::~JobDelegate |
( |
| ) |
|
◆ GetTaskId()
uint8_t v8::platform::DefaultJobState::JobDelegate::GetTaskId |
( |
| ) |
|
|
overridevirtual |
Returns a task_id unique among threads currently running this job, such that GetTaskId() < worker count. To achieve this, the same task_id may be reused by a different thread after a worker_task returns.
Implements v8::JobDelegate.
Definition at line 26 of file default-job.cc.
◆ IsJoiningThread()
bool v8::platform::DefaultJobState::JobDelegate::IsJoiningThread |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ NotifyConcurrencyIncrease()
void v8::platform::DefaultJobState::JobDelegate::NotifyConcurrencyIncrease |
( |
| ) |
|
|
inlineoverridevirtual |
◆ ShouldYield()
bool v8::platform::DefaultJobState::JobDelegate::ShouldYield |
( |
| ) |
|
|
inlineoverridevirtual |
Returns true if this thread must return from the worker task on the current thread ASAP. Workers should periodically invoke ShouldYield (or YieldIfNeeded()) as often as is reasonable. After this method returned true, ShouldYield must not be called again.
Implements v8::JobDelegate.
Definition at line 31 of file default-job.h.
◆ is_joining_thread_
bool v8::platform::DefaultJobState::JobDelegate::is_joining_thread_ |
|
private |
◆ kInvalidTaskId
uint8_t v8::platform::DefaultJobState::JobDelegate::kInvalidTaskId |
|
staticconstexprprivate |
Initial value:=
std::numeric_limits<uint8_t>::max()
Definition at line 45 of file default-job.h.
◆ outer_
◆ task_id_
uint8_t v8::platform::DefaultJobState::JobDelegate::task_id_ = kInvalidTaskId |
|
private |
◆ was_told_to_yield_
bool v8::platform::DefaultJobState::JobDelegate::was_told_to_yield_ = false |
|
private |
The documentation for this class was generated from the following files: