Panda3D
Public Member Functions | List of all members
LightMutexHolder Class Reference

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 &copy)=delete
 
LightMutexHolderoperator= (const LightMutexHolder &copy)=delete
 

Detailed Description

Similar to MutexHolder, but for a light mutex.

Definition at line 25 of file lightMutexHolder.h.

Constructor & Destructor Documentation

◆ LightMutexHolder()

LightMutexHolder::LightMutexHolder ( LightMutex *&  mutex)
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().


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