LightWrap++
AC++wrapperfortheLightWave3DSDK
lwpp::AutoMutex Class Reference

#include <threads.h>

List of all members.

Public Member Functions

 AutoMutex (LWMTUtil *u, const MutexID m)
 Construct the object and lock a mutex.
 AutoMutex (LWMTUtil *u, int m)
virtual ~AutoMutex ()
 Destroy the object and release the mutex.

Detailed Description

Automatic mutex to protect a complete function. Should get created and destroyed on the heap


Constructor & Destructor Documentation

lwpp::AutoMutex::AutoMutex ( LWMTUtil u,
const MutexID  m 
)
inline

Construct the object and lock a mutex.

Parameters:
*uThe LWMTUtil to use
mThe MutexID to lock
lwpp::AutoMutex::AutoMutex ( LWMTUtil u,
int  m 
)
inline
virtual lwpp::AutoMutex::~AutoMutex ( )
inlinevirtual

Destroy the object and release the mutex.


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