ezEngine  Milestone 9
ezMutex Class Reference

Provides a simple mechanism for mutual exclusion to prevent multiple threads from accessing a shared resource simultaneously. More...

#include <Mutex.h>

Inheritance diagram for ezMutex:

Public Member Functions

void Acquire ()
 Attempts to acquire an exclusive lock for this mutex object.
 
void Release ()
 Releases a lock that has been previously acquired.
 

Detailed Description

Provides a simple mechanism for mutual exclusion to prevent multiple threads from accessing a shared resource simultaneously.

This can be used to protect code that is not thread-safe against race conditions. To ensure that mutexes are always properly released, use the scoped Lock class.


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