Listener interface to intercept various thread state changes, including its destruction.
- See also
- CYIThread
#include <thread/YiThread.h>
◆ Listener()
CYIThread::Listener::Listener |
( |
| ) |
|
|
inline |
◆ ~Listener()
virtual CYIThread::Listener::~Listener |
( |
| ) |
|
|
inlinevirtual |
◆ OnThreadDestroyed()
virtual void CYIThread::Listener::OnThreadDestroyed |
( |
CYIThread * |
| ) |
|
|
inlinevirtual |
Called during destruction. Useful to detach from short-lived thread.
◆ OnThreadFinished()
virtual void CYIThread::Listener::OnThreadFinished |
( |
CYIThread * |
| ) |
|
|
inlinevirtual |
Called just after the thread's Run() function returns.
- Warning
- This function will be called from the thread's context.
◆ OnThreadStarted()
virtual void CYIThread::Listener::OnThreadStarted |
( |
CYIThread * |
| ) |
|
|
inlinevirtual |
Called just before the thread's Run() function is called.
- Warning
- This function will be called from the thread's context.
Reimplemented in CYIEventDispatcherThread.
◆ OnThreadTerminated()
virtual void CYIThread::Listener::OnThreadTerminated |
( |
CYIThread * |
| ) |
|
|
inlinevirtual |
Called if the thread's execution has been forcefully aborted.
- Warning
- This function will be called from the thread's context.
Reimplemented in CYIEventDispatcherThread.
The documentation for this class was generated from the following file: