DDraceNetwork Documentation
Loading...
Searching...
No Matches
CChooseMaster::CJob Class Reference
Inheritance diagram for CChooseMaster::CJob:
[legend]
Collaboration diagram for CChooseMaster::CJob:
[legend]

Public Member Functions

 CJob (CChooseMaster *pParent, std::shared_ptr< CData > pData)
bool Abort () override REQUIRES(!m_Lock)
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
bool IsAbortable () const

Private Member Functions

void Run () override REQUIRES(!m_Lock)

Private Attributes

CChooseMasterm_pParent
CLock m_Lock
std::shared_ptr< CDatam_pData
std::shared_ptr< CHttpRequestm_pHead
std::shared_ptr< CHttpRequestm_pGet

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
void Abortable (bool Abortable)

Constructor & Destructor Documentation

◆ CJob()

CChooseMaster::CJob::CJob ( CChooseMaster * pParent,
std::shared_ptr< CData > pData )
inline

Member Function Documentation

◆ Abort()

bool CChooseMaster::CJob::Abort ( )
overridevirtual

Aborts the job, if it can be aborted.

Returns
true if abort was accepted, false otherwise.
Remarks
May be overridden to delegate abort to other jobs. Note that this function may be called from any thread and should be thread-safe.

Reimplemented from IJob.

◆ Run()

void CChooseMaster::CJob::Run ( )
overrideprivatevirtual

Performs tasks in a worker thread.

Implements IJob.

Member Data Documentation

◆ m_Lock

CLock CChooseMaster::CJob::m_Lock
private

◆ m_pData

std::shared_ptr<CData> CChooseMaster::CJob::m_pData
private

◆ m_pGet

std::shared_ptr<CHttpRequest> CChooseMaster::CJob::m_pGet
private

◆ m_pHead

std::shared_ptr<CHttpRequest> CChooseMaster::CJob::m_pHead
private

◆ m_pParent

CChooseMaster* CChooseMaster::CJob::m_pParent
private

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