ezEngine Release 26.3
Loading...
Searching...
No Matches
ezLock< T > Class Template Reference

Manages a lock (e.g. a mutex) and ensures that it is properly released as the lock object goes out of scope. Works with any object that implements Lock() and Unlock() methods (ezMutex, etc.). Use the EZ_LOCK macro for convenient scoped locking. More...

#include <Lock.h>

Public Member Functions

EZ_ALWAYS_INLINE ezLock (T &ref_lock)
 Acquires the lock immediately upon construction.
 
EZ_ALWAYS_INLINE ~ezLock ()
 Automatically releases the lock when the object is destroyed.
 

Detailed Description

template<typename T>
class ezLock< T >

Manages a lock (e.g. a mutex) and ensures that it is properly released as the lock object goes out of scope. Works with any object that implements Lock() and Unlock() methods (ezMutex, etc.). Use the EZ_LOCK macro for convenient scoped locking.


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