You.i Engine
CYIThread::Listener Class Reference

Detailed Description

Listener interface to intercept various thread state changes, including its destruction.

See also
CYIThread

#include <thread/YiThread.h>

Inheritance diagram for CYIThread::Listener:

Public Member Functions

 Listener ()
 
virtual ~Listener ()
 
virtual void OnThreadStarted (CYIThread *)
 
virtual void OnThreadTerminated (CYIThread *)
 
virtual void OnThreadFinished (CYIThread *)
 
virtual void OnThreadDestroyed (CYIThread *)
 

Constructor & Destructor Documentation

CYIThread::Listener::Listener ( )
inline
virtual CYIThread::Listener::~Listener ( )
inlinevirtual

Member Function Documentation

virtual void CYIThread::Listener::OnThreadDestroyed ( CYIThread )
inlinevirtual

Called during destruction. Useful to detach from short-lived thread.

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.
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.

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: