|  | The Gaudi Framework
    v39r3 (979e3109)
    | 
#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/LockedHandle.h>

| Classes | |
| class | ConstGuard | 
| class | Guard | 
| Public Member Functions | |
| LockedHandle (T *ptr, MutexType &mut) | |
| LockedHandle (T *ptr, MutexType *mut) | |
| LockedHandle (T *ptr) | |
| LockedHandle () | |
| void | set (T *ptr, MutexType *mut) | 
| void | setMutex (MutexType *mut) | 
| T * | get () const | 
| Guard | operator* () | 
| Aquire and release the lock before and after the object is accessed.  More... | |
| Guard | operator-> () | 
| Aquire and release the lock before and after the object is accessed.  More... | |
| ConstGuard | operator* () const | 
| Aquire and release the lock before and after the const object is accessed.  More... | |
| ConstGuard | operator-> () const | 
| Aquire and release the lock before and after the const object is accessed.  More... | |
| operator bool () const | |
| Private Attributes | |
| T * | m_ptr | 
| MutexType * | m_mutex | 
Provides automatic lock/unlock access to a class upon deref of ptr. default type of mutex to use is a std::mutex, but this can be overridden with a second template parameter, as long as the type provides the lock() and unlock() functions
Definition at line 38 of file LockedHandle.h.
| 
 | inline | 
Definition at line 40 of file LockedHandle.h.
| 
 | inline | 
Definition at line 41 of file LockedHandle.h.
| 
 | inline | 
Definition at line 42 of file LockedHandle.h.
| 
 | inline | 
Definition at line 43 of file LockedHandle.h.
| 
 | inline | 
Definition at line 52 of file LockedHandle.h.
| 
 | inline | 
Definition at line 102 of file LockedHandle.h.
| 
 | inline | 
Aquire and release the lock before and after the object is accessed.
Definition at line 91 of file LockedHandle.h.
| 
 | inline | 
Aquire and release the lock before and after the const object is accessed.
Definition at line 97 of file LockedHandle.h.
| 
 | inline | 
Aquire and release the lock before and after the object is accessed.
Definition at line 94 of file LockedHandle.h.
| 
 | inline | 
Aquire and release the lock before and after the const object is accessed.
Definition at line 100 of file LockedHandle.h.
| 
 | inline | 
Definition at line 45 of file LockedHandle.h.
| 
 | inline | 
Definition at line 50 of file LockedHandle.h.
| 
 | mutableprivate | 
Definition at line 106 of file LockedHandle.h.
| 
 | private | 
Definition at line 105 of file LockedHandle.h.