Definition at line 22 of file TRWMutexImp.h.
Public Member Functions | |
void | Apply (std::unique_ptr< StateDelta > &&delta) override |
Apply the mutex state delta. More... | |
TVirtualRWMutex * | Factory (Bool_t=kFALSE) override |
Create mutex and return pointer to it. More... | |
std::unique_ptr< State > | GetStateBefore () override |
Get the mutex state before the current lock was taken. More... | |
Hint_t * | ReadLock () override |
Take the Read Lock of the mutex. More... | |
void | ReadUnLock (Hint_t *) override |
Release the read lock of the mutex. More... | |
std::unique_ptr< StateDelta > | Rewind (const State &earlierState) override |
Restore the mutex state to state . More... | |
Hint_t * | WriteLock () override |
Take the Write Lock of the mutex. More... | |
void | WriteUnLock (Hint_t *) override |
Release the read lock of the mutex. More... | |
Public Member Functions inherited from ROOT::TVirtualRWMutex | |
virtual void | Apply (std::unique_ptr< StateDelta > &&delta)=0 |
Int_t | CleanUp () override |
TVirtualRWMutex * | Factory (Bool_t=kFALSE) override=0 |
virtual std::unique_ptr< State > | GetStateBefore ()=0 |
Int_t | Lock () override |
virtual Hint_t * | ReadLock ()=0 |
virtual void | ReadUnLock (Hint_t *)=0 |
virtual std::unique_ptr< StateDelta > | Rewind (const State &earlierState)=0 |
Int_t | TryLock () override |
Int_t | UnLock () override |
virtual Hint_t * | WriteLock ()=0 |
virtual void | WriteUnLock (Hint_t *)=0 |
Public Member Functions inherited from TVirtualMutex | |
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 |
Private Attributes | |
ROOT::TReentrantRWLock< MutexT, RecurseCountsT > | fMutexImp |
|
overridevirtual |
Apply the mutex state delta.
In pseudo-code: current_lock_count += delta;
Implements ROOT::TVirtualRWMutex.
Definition at line 95 of file TRWMutexImp.cxx.
|
overridevirtual |
Create mutex and return pointer to it.
Implements ROOT::TVirtualRWMutex.
Definition at line 67 of file TRWMutexImp.cxx.
|
overridevirtual |
Get the mutex state before the current lock was taken.
This function must only be called while the mutex is locked.
Implements ROOT::TVirtualRWMutex.
Definition at line 106 of file TRWMutexImp.cxx.
|
overridevirtual |
Take the Read Lock of the mutex.
Implements ROOT::TVirtualRWMutex.
Definition at line 31 of file TRWMutexImp.cxx.
|
overridevirtual |
Release the read lock of the mutex.
Implements ROOT::TVirtualRWMutex.
Definition at line 49 of file TRWMutexImp.cxx.
|
overridevirtual |
Restore the mutex state to state
.
This function must only be called while the mutex is locked. Returns the DeltaState between now and the resulting state (i.e. lock count before state), such that the difference can be re-applied using Apply()
. In pseudo-code: delta = current_lock_count - earlierState.lock_count; current_lock_count -= delta; return delta;
Implements ROOT::TVirtualRWMutex.
Definition at line 84 of file TRWMutexImp.cxx.
|
overridevirtual |
Take the Write Lock of the mutex.
Implements ROOT::TVirtualRWMutex.
Definition at line 40 of file TRWMutexImp.cxx.
|
overridevirtual |
Release the read lock of the mutex.
Implements ROOT::TVirtualRWMutex.
Definition at line 58 of file TRWMutexImp.cxx.
|
private |
Definition at line 23 of file TRWMutexImp.h.