ezEngine  Milestone 7
ezMutex Class Reference

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

#include <Mutex.h>

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.
 

Private Member Functions

 EZ_DISALLOW_COPY_AND_ASSIGN (ezMutex)
 

Private Attributes

ezMutexHandle m_Handle
 

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: