Logo ROOT   6.18/05
Reference Guide
List of all members | Classes | Public Types | Public Member Functions | Public Attributes | List of all members
ROOT::Internal::UniqueLockRecurseCount Struct Reference

Definition at line 27 of file TReentrantRWLock.hxx.

Classes

struct  LocalCounts
 

Public Types

using Hint_t = TVirtualRWMutex::Hint_t
 
using local_t = LocalCounts *
 

Public Member Functions

 UniqueLockRecurseCount ()
 
Hint_tDecrementReadCount (local_t &local)
 
template<typename MutexT >
Hint_tDecrementReadCount (local_t &local, MutexT &)
 
void DecrementWriteCount ()
 
local_t GetLocal ()
 
size_t & GetLocalReadersCount (local_t &local)
 
Hint_tIncrementReadCount (local_t &local)
 
template<typename MutexT >
Hint_tIncrementReadCount (local_t &local, MutexT &)
 
bool IsCurrentWriter (local_t &local)
 
bool IsNotCurrentWriter (local_t &local)
 
void ResetIsWriter (local_t &local)
 
void ResetReadCount (local_t &local, int newvalue)
 
void SetIsWriter (local_t &local)
 

Public Attributes

size_t fWriteRecurse = 0
 ! Number of re-entry in the lock by the same thread. More...
 

#include <ROOT/TReentrantRWLock.hxx>

Member Typedef Documentation

◆ Hint_t

using ROOT::Internal::UniqueLockRecurseCount::Hint_t = TVirtualRWMutex::Hint_t

Definition at line 28 of file TReentrantRWLock.hxx.

◆ local_t

Definition at line 38 of file TReentrantRWLock.hxx.

Constructor & Destructor Documentation

◆ UniqueLockRecurseCount()

Internal::UniqueLockRecurseCount::UniqueLockRecurseCount ( )

Definition at line 49 of file TReentrantRWLock.cxx.

Member Function Documentation

◆ DecrementReadCount() [1/2]

Hint_t * ROOT::Internal::UniqueLockRecurseCount::DecrementReadCount ( local_t local)
inline

Definition at line 55 of file TReentrantRWLock.hxx.

◆ DecrementReadCount() [2/2]

template<typename MutexT >
Hint_t * ROOT::Internal::UniqueLockRecurseCount::DecrementReadCount ( local_t local,
MutexT &   
)
inline

Definition at line 61 of file TReentrantRWLock.hxx.

◆ DecrementWriteCount()

void ROOT::Internal::UniqueLockRecurseCount::DecrementWriteCount ( )
inline

Definition at line 81 of file TReentrantRWLock.hxx.

◆ GetLocal()

local_t ROOT::Internal::UniqueLockRecurseCount::GetLocal ( )
inline

Definition at line 40 of file TReentrantRWLock.hxx.

◆ GetLocalReadersCount()

size_t & ROOT::Internal::UniqueLockRecurseCount::GetLocalReadersCount ( local_t local)
inline

Definition at line 85 of file TReentrantRWLock.hxx.

◆ IncrementReadCount() [1/2]

Hint_t * ROOT::Internal::UniqueLockRecurseCount::IncrementReadCount ( local_t local)
inline

Definition at line 45 of file TReentrantRWLock.hxx.

◆ IncrementReadCount() [2/2]

template<typename MutexT >
Hint_t * ROOT::Internal::UniqueLockRecurseCount::IncrementReadCount ( local_t local,
MutexT &   
)
inline

Definition at line 51 of file TReentrantRWLock.hxx.

◆ IsCurrentWriter()

bool ROOT::Internal::UniqueLockRecurseCount::IsCurrentWriter ( local_t local)
inline

Definition at line 69 of file TReentrantRWLock.hxx.

◆ IsNotCurrentWriter()

bool ROOT::Internal::UniqueLockRecurseCount::IsNotCurrentWriter ( local_t local)
inline

Definition at line 70 of file TReentrantRWLock.hxx.

◆ ResetIsWriter()

void ROOT::Internal::UniqueLockRecurseCount::ResetIsWriter ( local_t local)
inline

Definition at line 83 of file TReentrantRWLock.hxx.

◆ ResetReadCount()

void ROOT::Internal::UniqueLockRecurseCount::ResetReadCount ( local_t local,
int  newvalue 
)
inline

Definition at line 65 of file TReentrantRWLock.hxx.

◆ SetIsWriter()

void ROOT::Internal::UniqueLockRecurseCount::SetIsWriter ( local_t local)
inline

Definition at line 72 of file TReentrantRWLock.hxx.

Member Data Documentation

◆ fWriteRecurse

size_t ROOT::Internal::UniqueLockRecurseCount::fWriteRecurse = 0

! Number of re-entry in the lock by the same thread.

Definition at line 34 of file TReentrantRWLock.hxx.


The documentation for this struct was generated from the following files: