Phosphor
phosphor::SlaveChunkLock Class Reference

#include <chunk_lock.h>

Inheritance diagram for phosphor::SlaveChunkLock:
phosphor::ChunkLock

Public Member Functions

void lock ()
 
bool try_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

Lockable concept implementation around a ChunkLock's slave lock


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