57template <
class LockType>
82 const LockType& lock_;
128template <
class LockType>
157 const LockType& lock_;
200template <
class LockType>
242 const LockType& lock_;
243 mutable bool lockWasSuccessful;
Holds a resizable array of primitive or copy-by-value objects.
Automatically locks and unlocks a mutex object.
GenericScopedLock(const LockType &lock) noexcept
Creates a GenericScopedLock.
~GenericScopedLock() noexcept
Destructor.
Automatically locks and unlocks a mutex object.
GenericScopedTryLock(const LockType &lock, bool acquireLockOnInitialisation=true) noexcept
Creates a GenericScopedTryLock.
bool isLocked() const noexcept
Returns true if the mutex was successfully locked.
bool retryLock() const noexcept
Retry gaining the lock by calling tryEnter on the underlying lock.
~GenericScopedTryLock() noexcept
Destructor.
Automatically unlocks and re-locks a mutex object.
~GenericScopedUnlock() noexcept
Destructor.
GenericScopedUnlock(const LockType &lock) noexcept
Creates a GenericScopedUnlock.