Phosphor
|
#include <chunk_lock.h>
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) | |
ChunkLock & | operator= (const ChunkLock &other) |
void | lockSlave () |
bool | tryLockSlave () |
void | unlockSlave () |
SlaveChunkLock & | slave () |
void | lockMaster () |
void | unlockMaster () |
MasterChunkLock & | master () |
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 >)] |
Lockable concept implementation around a ChunkLock's slave lock