OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_ScopedLock.h>
Public Member Functions | |
GenericScopedUnlock (const LockType &lock) noexcept | |
~GenericScopedUnlock () noexcept | |
Automatically unlocks and re-locks a mutex object.
This is the reverse of a GenericScopedLock object - instead of locking the mutex for the lifetime of this object, it unlocks it.
Make sure you don't try to unlock mutexes that aren't actually locked!
e.g.
Definition at line 125 of file juce_ScopedLock.h.
|
inlineexplicitnoexcept |
Creates a GenericScopedUnlock.
As soon as it is created, this will unlock the CriticalSection, and when the ScopedLock object is deleted, the CriticalSection will be re-locked.
Make sure this object is created and deleted by the same thread, otherwise there are no guarantees what will happen! Best just to use it as a local stack object, rather than creating one with the new() operator.
Definition at line 139 of file juce_ScopedLock.h.
|
inlinenoexcept |
Destructor.
The CriticalSection will be unlocked when the destructor is called.
Make sure this object is created and deleted by the same thread, otherwise there are no guarantees what will happen!
Definition at line 148 of file juce_ScopedLock.h.