XII Release 0.1.0
Loading...
Searching...
No Matches
xiiConditionalLock< T > Class Template Reference

Copyright (c) Theophilus Eriata. All Rights Reserved. More...

#include <ConditionalLock.h>

Public Member Functions

XII_ALWAYS_INLINE xiiConditionalLock (T &lock, bool bCondition)

Detailed Description

template<typename T>
class xiiConditionalLock< T >

Copyright (c) Theophilus Eriata. All Rights Reserved.

Manages a lock (e.g. a mutex) and ensures that it is properly released as the lock object goes out of scope. The lock/unlock will only be done if the boolean condition is satisfied at scope creation time.


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