Public Member Functions | |
| virtual bool | Initialise ()=0 |
| Called once when the thread is first started. The thread should perform any required initialisation and return true if it was able to initialise correctly and false if it has failed to initialise and should be shut down. | |
| virtual void | Process (const ULONG_PTR completionKey, const DWORD numberOfBytes, OVERLAPPED *pOverlapped)=0 |
| Called when a work item needs to be processed by the thread. | |
| virtual void | Shutdown ()=0 |
| Called when the thread is being shut down the thread can perform any required clean up tasks here. | |
Protected Member Functions | |
| ~IIOCPWorkerThreadCallback () | |
| We never delete instances of this interface; you must manage the lifetime of the class that implements it. | |
| ~IIOCPWorkerThreadCallback | ( | ) | [inline, protected] |
We never delete instances of this interface; you must manage the lifetime of the class that implements it.
| virtual bool Initialise | ( | ) | [pure virtual] |
Called once when the thread is first started. The thread should perform any required initialisation and return true if it was able to initialise correctly and false if it has failed to initialise and should be shut down.
| virtual void Process | ( | const ULONG_PTR | completionKey, | |
| const DWORD | numberOfBytes, | |||
| OVERLAPPED * | pOverlapped | |||
| ) | [pure virtual] |
Called when a work item needs to be processed by the thread.
| virtual void Shutdown | ( | ) | [pure virtual] |
Called when the thread is being shut down the thread can perform any required clean up tasks here.
1.5.3