Cross-Platform C++

ot
class ThreadTerminationHandler  (abstract)

#include "ot/base/ThreadTerminationHandler.h"

ot::ManagedObject An abstract base class providing an interface for classes that need to be informed when OpenTop Threads are about to terminate. Applications that need to inject code into OpenTop's Thread termination sequence may do so by creating an instance of a class which implements this interface, and registering that instance via the Thread::RegisterTerminationHandler() function.

Just befofe a Thread terminates, all the registered handlers will be invoked on a last-in, first-out (LIFO) basis.

See also:
Thread::RegisterTerminationHandler()
Since:
OpenTop 1.5



Method Summary
 virtual void onThreadTermination(Thread* pThread)=0
         Just befofe an OpenTop Thread terminates, this method is invoked on all registered handlers, on a last-in, first-out (LIFO) basis.

Methods inherited from class ot::ManagedObject
addRef(), getRefCount(), onFinalRelease(), operator=(const ManagedObject&), release()

Method Detail

onThreadTermination

virtual void onThreadTermination(Thread* pThread)=0
Just befofe an OpenTop Thread terminates, this method is invoked on all registered handlers, on a last-in, first-out (LIFO) basis. This method is called within the thread context of the thread which is about to terminate.



Cross-Platform C++

Found a bug or missing feature? Please email us at support@elcel.com

Copyright © 2000-2005 ElCel Technology   Trademark Acknowledgements