Phosphor
phosphor::ChunkTenant Struct Reference

Public Member Functions

 ChunkTenant ()=default
 
 ChunkTenant (non_trivial_constructor_t t)
 
void lock ()
 
bool try_lock ()
 
void unlock ()
 

Public Attributes

ChunkLock lck
 
TraceChunkchunk
 
bool initialised
 

Constructor & Destructor Documentation

phosphor::ChunkTenant::ChunkTenant ( )
default

ChunkTenant is trivially constructible to allow for use in MacOS compatible thread_local variables.

ChunkTenant is 'constructed' by memsetting to zero

phosphor::ChunkTenant::ChunkTenant ( non_trivial_constructor_t  t)

Non-trivial constructor for regular use

Member Data Documentation

bool phosphor::ChunkTenant::initialised

Special variable for use when registering a thread to tell if it's already been registered (and not just that the tenant is unlocked and isn't holding a chunk)


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