Wefts::CondCleanup Class Reference

#include <wefts_cleancond.h>

Inheritance diagram for Wefts::CondCleanup:

Inheritance graph
Collaboration diagram for Wefts::CondCleanup:

Collaboration graph
List of all members.

Detailed Description

Basic condition cleanup.

This simple class is used to simplify cleanup needs of basic conditions. If a condition wait is interrupted by a cancellation request, the mutex associated with the condition is acquired before the thread is canceled. A cleanup action must be taken in order to release it.

This class is provided to prevent application programmers to write repetitive extra-simple cleanup routine just in case there's no other thing to do except release the mutex in case of condition wait cancellation.

See also:
Cleanup system

Public Member Functions

 CondCleanup ()
 Constructior; does effectively nothing.

virtual void handleCleanup (int code, void *caller=0)
 Cleanup handler for simple condition waits.

Constructor & Destructor Documentation

Wefts::CondCleanup::CondCleanup  )  [inline]

Constructior; does effectively nothing.

Member Function Documentation

void Wefts::CondCleanup::handleCleanup int  code,
void *  caller = 0

Cleanup handler for simple condition waits.

This method just releases the mutex of the condition passed in the caller parameter. This will work only on Condition classes and derived.

code ignored
caller FastCond item (or subclass) to be unlocked.

Implements Wefts::CleanupHandler.

The documentation for this class was generated from the following files:
Generated on Tue Oct 5 14:57:01 2004 for Wefts by doxygen 1.3.7