Panda3D
Loading...
Searching...
No Matches
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 (const LightMutexHolder &copy)=delete
 
 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.
 
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() [1/2]

LightMutexHolder::LightMutexHolder ( const LightMutex & mutex)
inline

Definition at line 17 of file lightMutexHolder.I.

◆ LightMutexHolder() [2/2]

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 33 of file lightMutexHolder.I.

References LightMutexDirect::acquire().

◆ ~LightMutexHolder()

LightMutexHolder::~LightMutexHolder ( )
inline

Definition at line 47 of file lightMutexHolder.I.


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