Go to the documentation of this file.
29 #ifndef JUCE_SCOPEDLOCK_H_INCLUDED
30 #define JUCE_SCOPEDLOCK_H_INCLUDED
58 template <
class LockType>
83 const LockType& lock_;
127 template <
class LockType>
156 const LockType& lock_;
197 template <
class LockType>
213 : lock_ (lock), lockWasSuccessful (lock.tryEnter()) {}
230 const LockType& lock_;
231 const bool lockWasSuccessful;
237 #endif // JUCE_SCOPEDLOCK_H_INCLUDED
bool isLocked() const noexcept
Definition: juce_ScopedLock.h:226
GenericScopedTryLock(const LockType &lock) noexcept
Definition: juce_ScopedLock.h:212
Definition: juce_ScopedLock.h:128
Definition: juce_ScopedLock.h:59
#define noexcept
Definition: juce_CompilerSupport.h:141
~GenericScopedUnlock() noexcept
Definition: juce_ScopedLock.h:151
~GenericScopedTryLock() noexcept
Definition: juce_ScopedLock.h:223
Definition: juce_ScopedLock.h:198
GenericScopedLock(const LockType &lock) noexcept
Definition: juce_ScopedLock.h:72
GenericScopedUnlock(const LockType &lock) noexcept
Definition: juce_ScopedLock.h:142
~GenericScopedLock() noexcept
Definition: juce_ScopedLock.h:79