Support Forum       Library Source       SourceForge Page       G3D Web Page     
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
G3D::GMutex Class Reference

Mutual exclusion lock used for synchronization. More...

Public Member Functions

 GMutex ()
 
 ~GMutex ()
 
void lock ()
 Locks the mutex or blocks until available.
 
bool tryLock ()
 Locks the mutex if it not already locked.
 
void unlock ()
 Unlocks the mutex.
 

Detailed Description

Mutual exclusion lock used for synchronization.

See Also
G3D::GThread, G3D::AtomicInt32, G3D::Spinlock

Constructor & Destructor Documentation

G3D::GMutex::GMutex ( )
G3D::GMutex::~GMutex ( )

Member Function Documentation

void G3D::GMutex::lock ( )
bool G3D::GMutex::tryLock ( )

Locks the mutex if it not already locked.

Returns true if lock successful, false otherwise.

void G3D::GMutex::unlock ( )

documentation generated on Sat Jan 12 2013 22:49:55 using doxygen 1.8.2