CatapultServer  v0.5.0.1 (Elephant)
catapult::utils::ReentrancyCheckReaderNotificationPolicy Class Reference

A reentrancy check reader notification policy. More...

Collaboration diagram for catapult::utils::ReentrancyCheckReaderNotificationPolicy:

Public Member Functions

void readerAcquired ()
 A reader was acquried by the current thread. More...
 
void readerReleased ()
 A reader was released by the current thread. More...
 

Private Member Functions

template<typename TAction >
void executeSynchronized (TAction action)
 

Private Attributes

SpinLock m_mutex
 
std::unordered_set< std::thread::id > m_threadIds
 

Detailed Description

A reentrancy check reader notification policy.

Member Function Documentation

◆ executeSynchronized()

template<typename TAction >
void catapult::utils::ReentrancyCheckReaderNotificationPolicy::executeSynchronized ( TAction  action)
inlineprivate
Here is the caller graph for this function:

◆ readerAcquired()

void catapult::utils::ReentrancyCheckReaderNotificationPolicy::readerAcquired ( )
inline

A reader was acquried by the current thread.

Here is the call graph for this function:

◆ readerReleased()

void catapult::utils::ReentrancyCheckReaderNotificationPolicy::readerReleased ( )
inline

A reader was released by the current thread.

Here is the call graph for this function:

Member Data Documentation

◆ m_mutex

SpinLock catapult::utils::ReentrancyCheckReaderNotificationPolicy::m_mutex
private

◆ m_threadIds

std::unordered_set<std::thread::id> catapult::utils::ReentrancyCheckReaderNotificationPolicy::m_threadIds
private

The documentation for this class was generated from the following file: