ScopedMutex Class Reference

Simple exception safe mutex sentinel. More...

#include <scopedmutex.h>

Collaboration diagram for ScopedMutex:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ScopedMutex (pthread_mutex_t *mutex)
 Lock mutex for the lifetime of this object.
 ~ScopedMutex ()
 Unlock the mutex again.


Detailed Description

Simple exception safe mutex sentinel.

Warning:
This does not, and cannot protect against thread cancellation. It should not be used in such contexts if the mutex held will outlive the thread being cancelled.

Generated on Wed Jul 29 00:52:45 2009 for libvpb by  doxygen 1.5.9