ROOT 6.18/05 Reference Guide |
This class implements a mutex interface.
The actual work is done via TMutex which is available as soon as the thread library is loaded.
and
This class provides mutex resource management in a guaranteed and exception safe way. Use like this:
when guard goes out of scope the mutex is unlocked in the TLockGuard destructor. The exception mechanism takes care of calling the dtors of local objects so it is exception safe.
Definition at line 34 of file TVirtualMutex.h.
Public Member Functions | |
TVirtualMutex (Bool_t=kFALSE) | |
virtual | ~TVirtualMutex () |
Int_t | Acquire () |
virtual Int_t | CleanUp ()=0 |
virtual TVirtualMutex * | Factory (Bool_t=kFALSE)=0 |
virtual Int_t | Lock ()=0 |
Int_t | Release () |
virtual Int_t | TryLock ()=0 |
virtual Int_t | UnLock ()=0 |
#include <TVirtualMutex.h>
Definition at line 37 of file TVirtualMutex.h.
|
inlinevirtual |
Definition at line 38 of file TVirtualMutex.h.
|
inline |
Definition at line 44 of file TVirtualMutex.h.
|
pure virtual |
Implemented in TMutex, and ROOT::TVirtualRWMutex.
|
pure virtual |
Implemented in TMutex, ROOT::TRWMutexImp< MutexT, RecurseCountsT >, and ROOT::TVirtualRWMutex.
|
pure virtual |
Implemented in TMutex, and ROOT::TVirtualRWMutex.
|
inline |
Definition at line 45 of file TVirtualMutex.h.
|
pure virtual |
Implemented in TMutex, and ROOT::TVirtualRWMutex.
|
pure virtual |
Implemented in TMutex, and ROOT::TVirtualRWMutex.