Thread event interface. More...
#include <ThreadEvent.h>
Public Types | |
enum class | Type : uint8_t { THREAD_STARTED , THREAD_FINISHED , RUNABLE_STARTED , RUNABLE_FINISHED , IDLE_TIMEOUT } |
Thread event type. More... | |
Public Member Functions | |
virtual void | threadEvent (Thread *thread, Type eventType, SRunable runable)=0 |
Thread event callback function. More... | |
virtual | ~ThreadEvent ()=default |
Destructor. | |
Thread event interface.
|
strong |
|
pure virtual |
Thread event callback function.
In order to receive thread events, event receiver should be derived from this class.
thread | Thread where event occured |
eventType | Thread event type |
runable | Related runable (if any) |
Implemented in sptk::TCPServer, and sptk::ThreadPool.