Panda3D
Public Member Functions
LightMutexHolder Class Reference

Similar to MutexHolder, but for a light mutex. More...

#include "lightMutexHolder.h"

List of all members.

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.

Detailed Description

Similar to MutexHolder, but for a light mutex.

Definition at line 27 of file lightMutexHolder.h.


Constructor & Destructor Documentation

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

References LightMutexDirect::acquire().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations