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 32 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 TClass * | IsA () const |
virtual Int_t | Lock ()=0 |
Int_t | Release () |
virtual void | Streamer (TBuffer &) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
virtual Int_t | TryLock ()=0 |
virtual Int_t | UnLock ()=0 |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
#include <TVirtualMutex.h>
Definition at line 35 of file TVirtualMutex.h.
|
inlinevirtual |
Definition at line 36 of file TVirtualMutex.h.
|
inline |
Definition at line 42 of file TVirtualMutex.h.
|
static |
|
inlinestaticconstexpr |
Definition at line 47 of file TVirtualMutex.h.
|
pure virtual |
Implemented in ROOT::TVirtualRWMutex, and TMutex.
|
inlinestatic |
Definition at line 47 of file TVirtualMutex.h.
|
pure virtual |
Implemented in TMutex, ROOT::TRWMutexImp< MutexT, RecurseCountsT >, and ROOT::TVirtualRWMutex.
|
inlinevirtual |
Reimplemented in ROOT::TVirtualRWMutex, TMutex, and ROOT::TRWMutexImp< MutexT, RecurseCountsT >.
Definition at line 47 of file TVirtualMutex.h.
|
pure virtual |
Implemented in ROOT::TVirtualRWMutex, and TMutex.
|
inline |
Definition at line 43 of file TVirtualMutex.h.
|
virtual |
Reimplemented in ROOT::TVirtualRWMutex, TMutex, and ROOT::TRWMutexImp< MutexT, RecurseCountsT >.
|
inline |
Definition at line 47 of file TVirtualMutex.h.
|
pure virtual |
Implemented in ROOT::TVirtualRWMutex, and TMutex.
|
pure virtual |
Implemented in ROOT::TVirtualRWMutex, and TMutex.