|  |  | 
| Public Member Functions | |
| Lock (Mutex& mutex) | |
| Lock (Mutex& mutex, NotLock) | |
| Lock (Mutex& mutex, TryLock) | |
| ~Lock () | |
| void | acquire () | 
| bool | try_acquire () | 
| void | release () | 
| bool | locked () const | 
 {
   Glib::Mutex::Lock lock (mutex); // calls mutex.lock()
   do_something();
 } // the destructor calls mutex.unlock()
return while still holding the lock and it will be released properly. 
| 
 | 
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 |