Glib::Mutex Class Reference
List of all members.
Represents a mutex (mutual exclusion). It can be used to protect data against shared access. Try to use Mutex::Lock
instead of calling lock()
directly -- it will make your life much easier.
- Before creating a Glib::Mutex, Glib::thread_init() has to be called.
Glib::Mutex is not recursive, i.e. a thread will deadlock, if it already has locked the mutex while calling lock(). Use Glib::RecMutex instead, if you need recursive mutexes.
Definition at line 373 of file thread.h.
Public Member Functions
GMutex * ||gobj ()|
|void ||lock ()|
|bool ||trylock ()|
|void ||unlock ()|
Private Member Functions
||Mutex (const Mutex &)|
Mutex & ||operator= (const Mutex &)|
GMutex * ||gobject_|
The documentation for this class was generated from the following files: