![]() |
The Gaudi Framework
v29r3 (fa547fc2)
|
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 28 of file LockedHandle.h.
|
inline |
Definition at line 31 of file LockedHandle.h.
|
inline |
Definition at line 32 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 44 of file LockedHandle.h.
|
inline |
Definition at line 96 of file LockedHandle.h.
|
inline |
Aquire and release the lock before and after the object is accessed.
Definition at line 85 of file LockedHandle.h.
|
inline |
Aquire and release the lock before and after the const object is accessed.
Definition at line 91 of file LockedHandle.h.
|
inline |
Aquire and release the lock before and after the object is accessed.
Definition at line 88 of file LockedHandle.h.
|
inline |
Aquire and release the lock before and after the const object is accessed.
Definition at line 94 of file LockedHandle.h.
|
inline |
Definition at line 36 of file LockedHandle.h.
|
inline |
Definition at line 42 of file LockedHandle.h.
|
mutableprivate |
Definition at line 100 of file LockedHandle.h.
|
private |
Definition at line 99 of file LockedHandle.h.