DDraceNetwork Docs
CJob Class Reference
Inheritance diagram for CJob:
[legend]
Collaboration diagram for CJob:
[legend]

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
 
IJoboperator= (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)
 

Constructor & Destructor Documentation

◆ CJob()

CJob::CJob ( std::function< void()> &&  JobFunction)
inline

Member Function Documentation

◆ Abortable()

void CJob::Abortable ( bool  Abortable)
inline

◆ Run()

void CJob::Run ( )
inlineoverrideprivatevirtual

Performs tasks in a worker thread.

Implements IJob.

Member Data Documentation

◆ m_JobFunction

std::function<void()> CJob::m_JobFunction
private

The documentation for this class was generated from the following file: