rutz::mutex_lock_class Class Reference

Quick mutex locking class. More...

#include <rutz/mutex.h>

List of all members.

Public Member Functions

 mutex_lock_class (pthread_mutex_t *mut=0)
 Throws an exception if pthread_mutex_lock() fails.
bool is_locked () const throw ()
void unlock () throw ()
void swap (mutex_lock_class &that) throw ()

Detailed Description

Quick mutex locking class.

Use this when we don't want to use bare pthread_mutex_lock() and pthread_mutex_unlock() calls, because they aren't exception-safe. Use the GVX_MUTEX_LOCK() macro to create a local temporary lock object.

Definition at line 49 of file mutex.h.


Constructor & Destructor Documentation

rutz::mutex_lock_class::mutex_lock_class ( pthread_mutex_t *  mut = 0  ) 

Throws an exception if pthread_mutex_lock() fails.

Definition at line 40 of file mutex.cc.

References GVX_ABORT.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:44:44 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3