Phosphor
phosphor::MasterChunkLock Class Reference

#include <chunk_lock.h>

Inheritance diagram for phosphor::MasterChunkLock:
phosphor::ChunkLock

Public Member Functions

void lock ()
 
void unlock ()
 
- Public Member Functions inherited from phosphor::ChunkLock
 ChunkLock ()=default
 
 ChunkLock (non_trivial_constructor_t t)
 
 ChunkLock (const ChunkLock &other)
 
ChunkLockoperator= (const ChunkLock &other)
 
void lockSlave ()
 
bool tryLockSlave ()
 
void unlockSlave ()
 
SlaveChunkLockslave ()
 
void lockMaster ()
 
void unlockMaster ()
 
MasterChunkLockmaster ()
 

Additional Inherited Members

- Protected Types inherited from phosphor::ChunkLock
enum  State { Unlocked = 0x00, SlaveLocked, MasterLocked }
 
- Protected Attributes inherited from phosphor::ChunkLock
std::atomic< State > state
 
char cacheline_pad [64-sizeof(std::atomic< State >)]
 

Detailed Description

BasicLockable concept implementation around a ChunkLock's master lock


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