Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Wefts::CleanupHandler Class Reference

Cleanup handler interface. More...

#include <wefts_cleanup.h>

Inheritance diagram for Wefts::CleanupHandler:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void handleCleanup (int code, void *caller=0)=0
 Callback method called on cleanup.


Detailed Description

Cleanup handler interface.

This is a pure abstract interface that is used to create classes that will handle cleanup requests at some point.

See also:
Cleanup system


Member Function Documentation

virtual void Wefts::CleanupHandler::handleCleanup int  code,
void *  caller = 0
[pure virtual]
 

Callback method called on cleanup.

When a thread is terminated (stopped or finished), and a cleanup request have been set, this method is called. Use the code parameter to decide what action among the possible ones must be taken.

Parameters:
code an integer that is passed to determine the kind of action to take
caller a pointer to the object that requested cleanup; this allows to create generic cleanup routines for several different classes, if the actions to take are somehow repetetive.

Implemented in Wefts::CondCleanup, Wefts::CriticalSection, Wefts::MoaningThread, Wefts::RingBuffer< _T >, Wefts::RRWMutex, Wefts::RWMutex, Wefts::Semaphore, Wefts::Subscription, and Wefts::XMutex.


The documentation for this class was generated from the following file:
Generated on Sat Mar 13 21:05:44 2004 for Wefts by doxygen 1.3.5