Definition at line 92 of file TReentrantRWLock.hxx.
Public Types | |
using | Hint_t = TVirtualRWMutex::Hint_t |
using | local_t = std::thread::id |
using | ReaderColl_t = std::unordered_map<std::thread::id, size_t> |
Public Member Functions | |
Hint_t * | DecrementReadCount (local_t &local) |
template<typename MutexT > | |
Hint_t * | DecrementReadCount (local_t &local, MutexT &mutex) |
void | DecrementWriteCount () |
local_t | GetLocal () const |
size_t & | GetLocalReadersCount (local_t &local) |
Hint_t * | IncrementReadCount (local_t &local) |
template<typename MutexT > | |
Hint_t * | IncrementReadCount (local_t &local, MutexT &mutex) |
bool | IsCurrentWriter (local_t &local) const |
bool | IsNotCurrentWriter (local_t &local) const |
void | ResetIsWriter (local_t &) |
void | ResetReadCount (local_t &local, int newvalue) |
void | SetIsWriter (local_t &local) |
Public Attributes | |
ReaderColl_t | fReadersCount |
! Set of reader thread ids | |
size_t | fWriteRecurse = 0 |
! Number of re-entry in the lock by the same thread. | |
std::thread::id | fWriterThread |
! Holder of the write lock | |
#include </github/home/ROOT-CI/src/core/thread/src/TReentrantRWLock.hxx>
using ROOT::Internal::RecurseCounts::Hint_t = TVirtualRWMutex::Hint_t |
Definition at line 93 of file TReentrantRWLock.hxx.
using ROOT::Internal::RecurseCounts::local_t = std::thread::id |
Definition at line 100 of file TReentrantRWLock.hxx.
using ROOT::Internal::RecurseCounts::ReaderColl_t = std::unordered_map<std::thread::id, size_t> |
Definition at line 94 of file TReentrantRWLock.hxx.
Definition at line 117 of file TReentrantRWLock.hxx.
|
inline |
Definition at line 124 of file TReentrantRWLock.hxx.
|
inline |
Definition at line 146 of file TReentrantRWLock.hxx.
|
inline |
Definition at line 102 of file TReentrantRWLock.hxx.
|
inline |
Definition at line 150 of file TReentrantRWLock.hxx.
Definition at line 104 of file TReentrantRWLock.hxx.
|
inline |
Definition at line 111 of file TReentrantRWLock.hxx.
Definition at line 134 of file TReentrantRWLock.hxx.
Definition at line 135 of file TReentrantRWLock.hxx.
|
inline |
Definition at line 148 of file TReentrantRWLock.hxx.
Definition at line 130 of file TReentrantRWLock.hxx.
|
inline |
Definition at line 137 of file TReentrantRWLock.hxx.
ReaderColl_t ROOT::Internal::RecurseCounts::fReadersCount |
! Set of reader thread ids
Definition at line 98 of file TReentrantRWLock.hxx.
size_t ROOT::Internal::RecurseCounts::fWriteRecurse = 0 |
! Number of re-entry in the lock by the same thread.
Definition at line 95 of file TReentrantRWLock.hxx.
std::thread::id ROOT::Internal::RecurseCounts::fWriterThread |
! Holder of the write lock
Definition at line 97 of file TReentrantRWLock.hxx.