glibmm 2.66.6
|
This represents a recursive mutex. More...
#include <glibmm/threads.h>
Classes | |
class | Lock |
Utility class for exception-safe locking of recursive mutexes. More... | |
Public Member Functions | |
RecMutex () | |
RecMutex (const RecMutex &)=delete | |
RecMutex & | operator= (const RecMutex &)=delete |
~RecMutex () | |
void | lock () |
bool | trylock () |
void | unlock () |
GRecMutex * | gobj () |
Related Symbols | |
(Note that these are not member symbols.) | |
RecMutex * | wrap (GRecMutex * gobject) |
A C++ wrapper for the C object. | |
This represents a recursive mutex.
It is similar to a Mutex with the difference that it is possible to lock a RecMutex multiple times in the same thread without deadlock. When doing so, care has to be taken to unlock the recursive mutex as often as it has been locked.
Glib::Threads::RecMutex::RecMutex | ( | ) |
|
delete |
Glib::Threads::RecMutex::~RecMutex | ( | ) |
|
inline |
void Glib::Threads::RecMutex::lock | ( | ) |
bool Glib::Threads::RecMutex::trylock | ( | ) |
void Glib::Threads::RecMutex::unlock | ( | ) |