#include <rutz/mutex.h>
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 () |
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.