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

◆ Listener()

CYIThread::Listener::Listener ( )
inline

◆ ~Listener()

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

Member Function Documentation

◆ 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: