PxMutexImpl

Defined in include/foundation/PxMutex.h

class PxMutexImpl

Public Functions

PxMutexImpl()

The constructor for Mutex creates a mutex.

It is initially unlocked.

~PxMutexImpl()

The destructor for Mutex deletes the mutex.

void lock()

Acquire (lock) the mutex.

If the mutex is already locked by another thread, this method blocks until the mutex is unlocked.

bool trylock()

Acquire (lock) the mutex.

If the mutex is already locked by another thread, this method returns false without blocking.

void unlock()

Release (unlock) the mutex.

Public Static Functions

static uint32_t getSize()

Size of this class.