DDraceNetwork Docs
|
Public Member Functions | |
CJob (std::function< void()> &&JobFunction) | |
void | Abortable (bool Abortable) |
Public Member Functions inherited from IJob | |
IJob () | |
virtual | ~IJob () |
IJob (const IJob &Other)=delete | |
IJob & | operator= (const IJob &Other)=delete |
EJobState | State () const |
bool | Done () const |
virtual bool | Abort () |
bool | IsAbortable () const |
Private Member Functions | |
void | Run () override |
Private Attributes | |
std::function< void()> | m_JobFunction |
Additional Inherited Members | |
Public Types inherited from IJob | |
enum | EJobState { STATE_QUEUED = 0 , STATE_RUNNING , STATE_DONE , STATE_ABORTED } |
Protected Member Functions inherited from IJob | |
virtual void | Run ()=0 |
void | Abortable (bool Abortable) |
|
inline |
|
inline |
|
inlineoverrideprivatevirtual |
Performs tasks in a worker thread.
Implements IJob.
|
private |