ROOT 6.10/09 Reference Guide |
Template classe which provides a mechanism to create a mutex and locks/unlocks it.
Extracted from G4AutoLock implementation for Linux Note: Note that G4TemplateAutoLock by itself is not thread-safe and cannot be shared among threads due to the locked switch
Definition at line 115 of file TMCAutoLock.h.
Public Member Functions | |
TMCTemplateAutoLock (M *mtx, L l, U u) | |
virtual | ~TMCTemplateAutoLock () |
void | lock () |
void | unlock () |
Private Member Functions | |
TMCTemplateAutoLock (const TMCTemplateAutoLock &rhs) | |
TMCTemplateAutoLock & | operator= (const TMCTemplateAutoLock &rhs) |
Private Attributes | |
L | _l |
M * | _m |
U | _u |
bool | locked |
#include <TMCAutoLock.h>
|
inline |
Definition at line 117 of file TMCAutoLock.h.
|
inlinevirtual |
Definition at line 119 of file TMCAutoLock.h.
|
private |
|
inline |
Definition at line 128 of file TMCAutoLock.h.
|
private |
|
inline |
Definition at line 121 of file TMCAutoLock.h.
|
private |
Definition at line 144 of file TMCAutoLock.h.
|
private |
Definition at line 143 of file TMCAutoLock.h.
|
private |
Definition at line 145 of file TMCAutoLock.h.
|
private |
Definition at line 142 of file TMCAutoLock.h.