Go to the SVN repository for this file.
1 #ifndef PREFETCH_MANAGER__HPP 2 #define PREFETCH_MANAGER__HPP 119 static boolIsActive(
void);
122 voidCancelAllTasks(
void);
125 voidShutdown(
void);
143 virtual const char* GetErrCodeString(
void)
const override;
155 virtual const char* GetErrCodeString(
void)
const override;
165 size_tactive_size = 10);
172 voidEnqueNextAction(
void);
190 unsigned intpriority);
195 returnm_Action.GetNCPointer();
200 returnm_Listener.GetNCPointerOrNull();
204 EStateGetState(
void)
const;
216TProgress SetProgress(TProgress progress);
220 virtual voidOnStatusChange(
EStatus);
This exception is used to interrupt actions canceled by user.
This exception is used to report failed actions.
Abstract class for representing single task executing in pool of threads To use this class in applica...
Include a standard set of the NCBI C++ Toolkit most basic headers.
EErrCode
Error types that an application can generate.
TProgress GetProgress(void) const
virtual CIRef< IPrefetchAction > GetNextAction(void)=0
CIRef< IPrefetchActionSource > m_Source
CIRef< IPrefetchAction > m_Action
virtual bool Execute(CRef< CPrefetchRequest > token)=0
CRef< CObjectFor< CMutex > > m_StateMutex
CIRef< IPrefetchListener > m_Listener
IPrefetchAction * GetAction(void) const
IPrefetchListener * GetListener(void) const
CRef< CPrefetchManager > m_Manager
NCBI_EXCEPTION_DEFAULT(CPrefetchFailed, CException)
NCBI_EXCEPTION_DEFAULT(CPrefetchCanceled, CException)
virtual void PrefetchNotify(CRef< CPrefetchRequest > token, EEvent event)=0
void operator=(const CPrefetchManager &)
CPrefetchManager(const CPrefetchManager &)
CRef< CPrefetchManager_Impl > m_Impl
list< CRef< CPrefetchRequest > > m_ActiveTokens
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
int TRunMode
Bitwise OR'd flags for thread creation passed to Run().
@ fRunDefault
Default mode.
#define NCBI_XOBJMGR_EXPORT
Pool of generic task-executing threads.
string Execute(const string &cmmd, const vector< string > &args, const string &data=kEmptyStr)
const CharType(& source)[N]
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
Multi-threading â classes, functions, and features.
@ eCanceled
Request canceled.
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