|  | The Gaudi Framework
    v28r2
    | 
Provides automatic lock/unlock access to a class upon deref of ptr. More...
#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 30 of file LockedHandle.h.
| 
 | inline | 
Definition at line 33 of file LockedHandle.h.
| 
 | inline | 
Definition at line 34 of file LockedHandle.h.
| 
 | inline | 
Definition at line 35 of file LockedHandle.h.
| 
 | inline | 
Definition at line 36 of file LockedHandle.h.
| 
 | inline | 
Definition at line 45 of file LockedHandle.h.
| 
 | inline | 
Definition at line 122 of file LockedHandle.h.
| 
 | inline | 
Aquire and release the lock before and after the object is accessed.
Definition at line 111 of file LockedHandle.h.
| 
 | inline | 
Aquire and release the lock before and after the const object is accessed.
Definition at line 117 of file LockedHandle.h.
| 
 | inline | 
Aquire and release the lock before and after the object is accessed.
Definition at line 114 of file LockedHandle.h.
| 
 | inline | 
Aquire and release the lock before and after the const object is accessed.
Definition at line 120 of file LockedHandle.h.
| 
 | inline | 
Definition at line 38 of file LockedHandle.h.
| 
 | inline | 
Definition at line 43 of file LockedHandle.h.
| 
 | mutableprivate | 
Definition at line 128 of file LockedHandle.h.
| 
 | private | 
Definition at line 127 of file LockedHandle.h.