CatapultServer  v0.5.0.1 (Elephant)
catapult::utils::BasicSpinReaderWriterLock< TReaderNotificationPolicy >::WriterLockGuard Struct Reference

A writer lock guard. More...

Inheritance diagram for catapult::utils::BasicSpinReaderWriterLock< TReaderNotificationPolicy >::WriterLockGuard:
Collaboration diagram for catapult::utils::BasicSpinReaderWriterLock< TReaderNotificationPolicy >::WriterLockGuard:

Public Member Functions

 WriterLockGuard (std::atomic< uint16_t > &value, bool &isActive)
 Creates a guard around value and isActive. More...
 
 WriterLockGuard (WriterLockGuard &&)=default
 Default move constructor. More...
 
- Public Member Functions inherited from catapult::utils::BasicSpinReaderWriterLock< TReaderNotificationPolicy >::LockGuard
 LockGuard (LockGuard &&rhs)
 

Additional Inherited Members

- Protected Member Functions inherited from catapult::utils::BasicSpinReaderWriterLock< TReaderNotificationPolicy >::LockGuard
 LockGuard (const action &resetFunc)
 
 ~LockGuard ()
 

Detailed Description

template<typename TReaderNotificationPolicy>
struct catapult::utils::BasicSpinReaderWriterLock< TReaderNotificationPolicy >::WriterLockGuard

A writer lock guard.

Constructor & Destructor Documentation

◆ WriterLockGuard() [1/2]

template<typename TReaderNotificationPolicy >
catapult::utils::BasicSpinReaderWriterLock< TReaderNotificationPolicy >::WriterLockGuard::WriterLockGuard ( std::atomic< uint16_t > &  value,
bool &  isActive 
)
inlineexplicit

Creates a guard around value and isActive.

◆ WriterLockGuard() [2/2]

template<typename TReaderNotificationPolicy >
catapult::utils::BasicSpinReaderWriterLock< TReaderNotificationPolicy >::WriterLockGuard::WriterLockGuard ( WriterLockGuard &&  )
default

Default move constructor.


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