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.

The documentation for this class was generated from the following files:

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:56:44 2008 by Doxygen version 1.5.5.