Public Member Functions | |
virtual bool | InitialiseWorkerThread ()=0 |
Called when a worker thread starts. Note that this IS called from the thread itself and if you return false it won't start. You can use this to perform per-thread initialisation. | |
virtual void | ShutdownWorkerThread ()=0 |
Called when a worker thread that has had a call to Initialise() return true, stops. Note that this IS called from the thread itself. You can use this to perform per-thread clean up. | |
virtual bool | GetNextWorkItem (IHandler *&pHandler, DWORD &ioSize, IBuffer *&pBuffer, DWORD &lastError)=0 |
virtual bool | GetNextWorkItems (OVERLAPPED_ENTRY *pEntries, ULONG &numEntries, DWORD &lastError)=0 |
virtual void | PutBackWorkItems (OVERLAPPED_ENTRY *pEntries, ULONG numEntries)=0 |
Protected Member Functions | |
~IManageWorkerThreads () override | |
We never delete instances of this interface; you must manage the lifetime of the class that implements it. |
~IManageWorkerThreads | ( | ) | [override, protected] |
We never delete instances of this interface; you must manage the lifetime of the class that implements it.
virtual bool InitialiseWorkerThread | ( | ) | [pure virtual] |
Called when a worker thread starts. Note that this IS called from the thread itself and if you return false it won't start. You can use this to perform per-thread initialisation.
virtual void ShutdownWorkerThread | ( | ) | [pure virtual] |
Called when a worker thread that has had a call to Initialise() return true, stops. Note that this IS called from the thread itself. You can use this to perform per-thread clean up.
virtual bool GetNextWorkItem | ( | IHandler *& | pHandler, | |
DWORD & | ioSize, | |||
IBuffer *& | pBuffer, | |||
DWORD & | lastError | |||
) | [pure virtual, inherited] |
virtual bool GetNextWorkItems | ( | OVERLAPPED_ENTRY * | pEntries, | |
ULONG & | numEntries, | |||
DWORD & | lastError | |||
) | [pure virtual, inherited] |
virtual void PutBackWorkItems | ( | OVERLAPPED_ENTRY * | pEntries, | |
ULONG | numEntries | |||
) | [pure virtual, inherited] |