39template<
typename T = FX::FXMutex,
bool IGNORE_COND = false>
46 if (IGNORE_COND || condition) {
A scoped lock which only triggers on condition.
~ScopedLocker()
Destroy and unlock associated mutex.
ScopedLocker(T &m, const bool condition=true)
Construct & lock associated mutex if the condition is true.
ScopedLocker & operator=(const ScopedLocker &)=delete