The C++ framework for developing highly scalable, high performance servers on Windows platforms.

IManageWorkerThreads Class Reference
[InterfacesProtected destructors on abstract base classes]

Inheritance diagram for IManageWorkerThreads:
Collaboration diagram for IManageWorkerThreads:

List of all members.

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.


Constructor & Destructor Documentation

~IManageWorkerThreads (  )  [override, protected]

We never delete instances of this interface; you must manage the lifetime of the class that implements it.


Member Function Documentation

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]


Generated on Sun Sep 12 19:09:30 2021 for The Server Framework - v7.4 by doxygen 1.5.3