Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Mutex Class Reference

`#include <mutex.h>`

## Public Member Functions
| Mutex ()
virtual | ~Mutex ()
virtual bool | lock (bool block=true)
virtual void | unlock ()

## Static Public Member Functions
static void * | createMutex ()
static void | destroyMutex (void *mutex)
static bool | lockMutex (void *mutex, bool block=true)
static void | unlockMutex (void *mutex)

## Protected Attributes
PlatformMutexData * | mData

## Constructor & Destructor Documentation

Mutex | ( | void |  | ) |

~Mutex | ( |  | ) |
| virtual

## Member Function Documentation

static void* createMutex | ( |  | ) |
| inline static

static void destroyMutex | ( | void * | mutex | ) |
| inline static

bool lock | ( | bool | block = `true` | ) |
| virtual

static bool lockMutex | ( | void * | mutex,
|  | bool | block = `true`
| ) |  |
| inline static

void unlock | ( |  | ) |
| virtual

static void unlockMutex | ( | void * | mutex | ) |
| inline static

## Member Data Documentation

PlatformMutexData* mData
| protected

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

- platform/threads/mutex.h
- platformAndroid/AndroidMutex.cpp
- platformEmscripten/EmscriptenMutex.cpp