Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Internal::UniqueLockRecurseCount Struct Reference

Definition at line 31 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.
 

#include </home/sftnight/build/workspace/root-makedoc-master/rootspi/rdoc/src/master/core/thread/src/TReentrantRWLock.hxx>

Member Typedef Documentation

◆ Hint_t

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

Definition at line 32 of file TReentrantRWLock.hxx.

◆ local_t

Constructor & Destructor Documentation

◆ UniqueLockRecurseCount()

Internal::UniqueLockRecurseCount::UniqueLockRecurseCount ( )

Definition at line 57 of file TReentrantRWLock.cxx.

Member Function Documentation

◆ DecrementReadCount() [1/2]

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

Definition at line 59 of file TReentrantRWLock.hxx.

◆ DecrementReadCount() [2/2]

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

Definition at line 65 of file TReentrantRWLock.hxx.

◆ DecrementWriteCount()

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

Definition at line 85 of file TReentrantRWLock.hxx.

◆ GetLocal()

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

Definition at line 44 of file TReentrantRWLock.hxx.

◆ GetLocalReadersCount()

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

Definition at line 89 of file TReentrantRWLock.hxx.

◆ IncrementReadCount() [1/2]

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

Definition at line 49 of file TReentrantRWLock.hxx.

◆ IncrementReadCount() [2/2]

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

Definition at line 55 of file TReentrantRWLock.hxx.

◆ IsCurrentWriter()

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

Definition at line 73 of file TReentrantRWLock.hxx.

◆ IsNotCurrentWriter()

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

Definition at line 74 of file TReentrantRWLock.hxx.

◆ ResetIsWriter()

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

Definition at line 87 of file TReentrantRWLock.hxx.

◆ ResetReadCount()

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

Definition at line 69 of file TReentrantRWLock.hxx.

◆ SetIsWriter()

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

Definition at line 76 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 38 of file TReentrantRWLock.hxx.

Collaboration diagram for ROOT::Internal::UniqueLockRecurseCount:
[legend]

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