ROOT 6.16/01 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 118 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 120 of file TMCAutoLock.h.
|
inlinevirtual |
Definition at line 122 of file TMCAutoLock.h.
|
private |
|
inline |
Definition at line 131 of file TMCAutoLock.h.
|
private |
|
inline |
Definition at line 124 of file TMCAutoLock.h.
|
private |
Definition at line 147 of file TMCAutoLock.h.
|
private |
Definition at line 146 of file TMCAutoLock.h.
|
private |
Definition at line 148 of file TMCAutoLock.h.
|
private |
Definition at line 145 of file TMCAutoLock.h.