47 std::unique_lock<ROOT::TSpinMutex> lock(
fMutex);
66 std::lock_guard<ROOT::TSpinMutex> lock(
fMutex);
81 std::unique_lock<ROOT::TSpinMutex> lock(
fMutex);
105 std::lock_guard<ROOT::TSpinMutex> lock(
fMutex);
void WriteUnLock()
Release the lock in write mode.
std::condition_variable_any fCond
! RWlock internal condition variable
Namespace for new ROOT classes and functions.
ROOT::TSpinMutex fMutex
! RWlock internal mutex
std::atomic< int > fReaderReservation
! A reader wants access
std::atomic< bool > fWriter
! Is there a writer?
std::atomic< int > fReaders
! Number of readers
void WriteLock()
Acquire the lock in write mode.
void ReadLock()
Acquire the lock in read mode.
std::atomic< int > fWriterReservation
! A writer wants access
void ReadUnLock()
Release the lock in read mode.