TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3D::GMutexLock Class Reference

#include <GMutex.h>

Public Member Functions

 GMutexLock (GMutex *mutex)
 
 ~GMutexLock ()
 

Private Member Functions

 GMutexLock (const GMutexLock &mlock)
 
GMutexLockoperator= (const GMutexLock &)
 
bool operator== (const GMutexLock &)
 

Private Attributes

GMutexm
 

Detailed Description

Automatically locks while in scope.

Constructor & Destructor Documentation

G3D::GMutexLock::GMutexLock ( const GMutexLock mlock)
private
G3D::GMutexLock::GMutexLock ( GMutex mutex)
inline
119  {
120  m = mutex;
121  m->lock();
122  }
GMutex * m
Definition: GMutex.h:111
void lock()
Definition: GThread.cpp:248

+ Here is the call graph for this function:

G3D::GMutexLock::~GMutexLock ( )
inline
124  {
125  m->unlock();
126  }
GMutex * m
Definition: GMutex.h:111
void unlock()
Definition: GThread.cpp:256

+ Here is the call graph for this function:

Member Function Documentation

GMutexLock& G3D::GMutexLock::operator= ( const GMutexLock )
private
bool G3D::GMutexLock::operator== ( const GMutexLock )
private

Member Data Documentation

GMutex* G3D::GMutexLock::m
private

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