CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::detail::CacheViewReadLockPair< TCacheView > Struct Template Reference
Collaboration diagram for catapult::cache::detail::CacheViewReadLockPair< TCacheView >:

Public Member Functions

 CacheViewReadLockPair (TCacheView &&cacheView, utils::SpinReaderWriterLock::ReaderLockGuard &&readLock)
 Creates a pair around cacheView and readLock. More...
 

Public Attributes

TCacheView CacheView
 Cache view. More...
 
utils::SpinReaderWriterLock::ReaderLockGuard ReadLock
 Read lock. More...
 

Detailed Description

template<typename TCacheView>
struct catapult::cache::detail::CacheViewReadLockPair< TCacheView >

A cache-view, read-lock pair.

Note
The cache-view template argument can be either a view or a delta.

Constructor & Destructor Documentation

◆ CacheViewReadLockPair()

template<typename TCacheView >
catapult::cache::detail::CacheViewReadLockPair< TCacheView >::CacheViewReadLockPair ( TCacheView &&  cacheView,
utils::SpinReaderWriterLock::ReaderLockGuard &&  readLock 
)
inline

Creates a pair around cacheView and readLock.

Member Data Documentation

◆ CacheView

template<typename TCacheView >
TCacheView catapult::cache::detail::CacheViewReadLockPair< TCacheView >::CacheView

Cache view.

◆ ReadLock

Read lock.


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