Base class of DepTask_
, can be added to scheduler. Instances must be created through class DepTask_
.
More...
#include <DepTask.h>
Base class of DepTask_
, can be added to scheduler. Instances must be created through class DepTask_
.
Enumerator |
---|
idle |
Not active.
|
queued |
Queued for execution.
|
depUpWait |
Waiting for upstream tasks (dependency subgraph) to complete.
|
exec |
Executing functor.
|
depDownWait |
Waiting for downsteam tasks (immediate dependees) to complete.
|
virtual honey::DepTask::~DepTask |
( |
| ) |
|
|
inlinevirtual |
honey::DepTask::DepTask |
( |
const Id & |
id | ) |
|
|
protected |
bool honey::DepTask::active |
( |
| ) |
const |
|
inline |
Check if task is in queue or executing.
void honey::DepTask::bindDirty |
( |
| ) |
|
|
protected |
DepTask & honey::DepTask::current |
( |
| ) |
|
|
static |
Get the current task object. Must be called from a task functor.
Get dependency node. Upstream and downstream tasks can be specified through the node.
Out links are 'upstream' tasks that will be completed before this one. In links are 'downstream' tasks that will be completed after this one.
virtual void honey::DepTask::exec |
( |
| ) |
|
|
protectedpure virtual |
void honey::DepTask::finalize_ |
( |
| ) |
|
|
protected |
Clean up task after execution.
const Id& honey::DepTask::getId |
( |
| ) |
const |
|
inline |
int honey::DepTask::getPriority |
( |
| ) |
const |
|
inline |
String honey::DepTask::info |
( |
| ) |
const |
Get task info for prepending to a log record.
bool honey::DepTask::interruptRequested |
( |
| ) |
|
|
inline |
Check whether an interrupt has been requested for the executing task's thread.
honey::DepTask::operator const Id & |
( |
| ) |
const |
|
inline |
void honey::DepTask::operator() |
( |
| ) |
|
|
protected |
virtual void honey::DepTask::resetFunctor |
( |
| ) |
|
|
protectedpure virtual |
void honey::DepTask::setId |
( |
const Id & |
id | ) |
|
|
inline |
Set id used for dependency graph and debug output.
void honey::DepTask::setPriority |
( |
int |
priority | ) |
|
|
inline |
void honey::DepTask::trace |
( |
const String & |
file, |
|
|
int |
line, |
|
|
const String & |
msg |
|
) |
| const |
|
protectedvirtual |
bool honey::DepTask::traceEnabled |
( |
| ) |
const |
|
inlineprotectedvirtual |
bool honey::DepTask::_bindDirty |
|
protected |
int honey::DepTask::_bindId |
|
protected |
Atomic<int> honey::DepTask::_depDownWait |
|
protected |
int honey::DepTask::_depDownWaitInit |
|
protected |
Atomic<int> honey::DepTask::_depUpWait |
|
protected |
int honey::DepTask::_depUpWaitInit |
|
protected |
Mutex honey::DepTask::_lock |
|
protected |
bool honey::DepTask::_onStack |
|
protected |
int honey::DepTask::_priority |
|
protected |
int honey::DepTask::_regCount |
|
protected |
Thread* honey::DepTask::_thread |
|
protected |
The documentation for this class was generated from the following files: