#include <MCThreadListener.h>
Inheritance diagram for MCThreadListener:
Public Member Functions | |
virtual void | onThreadExit (mcthreadid_t threadId) |
Called when thread exits. | |
virtual void | onThreadStart (mcthreadid_t threadId) |
Called when a thread starts. | |
virtual | ~MCThreadListener () |
Allow virtual delete. |
Thread events are generated when threads start and exit. Registered listeners are notified of these events when they occur by methods being called on the listener.
|
Called when thread exits. Derived classes override this to be signalled when a thread exits. The default implementation does nothing. Using MCThread::getCurrentThread() from this method in derived classes yields the MCThread which has just exited (i.e. the one with the specified threadId). Note. The name of the thread is no longer available at thread exit.
|
|
Called when a thread starts. Derived classes override this to be signalled when a thread starts. The default implementation does nothing. Using MCThread::getCurrentThread() from this method in derived classes yields the MCThread which has just started (i.e. the one with the specified threadId)
|