#include <wefts_cleancond.h>
Inheritance diagram for Wefts::CondCleanup:
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.
Public Member Functions | |
CondCleanup () | |
Constructior; does effectively nothing. | |
virtual void | handleCleanup (int code, void *caller=0) |
Cleanup handler for simple condition waits. |
|
Constructior; does effectively nothing.
|
|
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.
Implements Wefts::CleanupHandler. |