![]() |
Plasma Engine
2.0
|
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. More...
#include <ConditionalLock.h>
Public Member Functions | |
PL_ALWAYS_INLINE | plConditionalLock (T &lock, bool bCondition) |
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.