CAppJobRequest;
108 virtual voidx_OnTaskStatusChange(
CThreadTask& task,
110 voidRemoveJobRecord(
IAppJob& job);
CQueueItemBase â skeleton blocking-queue item, sans actual request.
IAppJob to CThreadPool_Task Adaptor.
Abstract class for representing single task executing in pool of threads To use this class in applica...
Main class implementing functionality of pool of threads.
IAppJobEngineListener - receives notifications about changes in job state.
container_type::const_iterator const_iterator
container_type::iterator iterator
virtual void StartJob(IAppJob &job, IEngineParams *params=NULL)=0
If Engine cannot start the Job and exception shall be thrown.
virtual void ResumeJob(IAppJob &job)=0
IAppJobEngineListener * m_Listener
virtual void SuspendJob(IAppJob &job)=0
CThreadPoolEngine & m_Engine
virtual void SetListener(IAppJobEngineListener *listener)=0
For "active" mode set a Listener that will be notified when the state of a Job changes.
virtual void RequestCancel()=0
asyncronous request all jobs to Cancel
virtual void CancelJob(IAppJob &job)=0
Cancel job in the engine If job is not running yet - just remove from the pending queue otherwise use...
CThreadPool m_ThreadPool
pool of threads with a request queue
map< IAppJob *, CRef< CThreadTask > > TJobToHandle
EJobState
Job states (describe FSM)
virtual bool IsActive()=0
Returns true if Engine supports "active" model i.e.
CAppJobDispatcher TJobStates
IAppJob::EJobState TJobState
TJobToHandle m_JobToHandle
virtual TJobState GetJobState(IAppJob &job) const =0
IAppJob::EJobState m_JobState
CQueueItemBase TReqStates
virtual void ShutDown()=0
stop any background threads and free resources associated with the Engine
CRef< CThreadTask > THandle
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
EStatus
Status of the task.
#define NCBI_GUIUTILS_EXPORT
Pool of generic task-executing threads.
string Execute(const string &cmmd, const vector< string > &args, const string &data=kEmptyStr)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4