Similar to MutexHolder, but for a light mutex. More...
#include "lightMutexHolder.h"
Public Member Functions | |
LightMutexHolder (const LightMutex &mutex) | |
LightMutexHolder (LightMutex *&mutex) | |
If the LightMutexHolder constructor is given a pointer to a LightMutex object (instead of an actual object), it will first check to see if the pointer is NULL, and allocate a new LightMutex if it is. More... | |
LightMutexHolder (const LightMutexHolder ©)=delete | |
LightMutexHolder & | operator= (const LightMutexHolder ©)=delete |
Similar to MutexHolder, but for a light mutex.
Definition at line 25 of file lightMutexHolder.h.
|
inline |
If the LightMutexHolder constructor is given a pointer to a LightMutex object (instead of an actual object), it will first check to see if the pointer is NULL, and allocate a new LightMutex if it is.
This is intended as a convenience for functions that may need to reference a LightMutex at static init time, when it is impossible to guarantee ordering of initializers.
Definition at line 34 of file lightMutexHolder.I.
References LightMutexDirect::acquire().