JUCE
|
Typedefs | |
using | ScopedLock = CriticalSection::ScopedLockType |
Automatically locks and unlocks a CriticalSection object. More... | |
using | ScopedUnlock = CriticalSection::ScopedUnlockType |
Automatically unlocks and re-locks a CriticalSection object. More... | |
using | ScopedTryLock = CriticalSection::ScopedTryLockType |
Automatically tries to lock and unlock a CriticalSection object. More... | |
Automatically locks and unlocks a CriticalSection object.
You can use a ScopedLock as a local variable to provide RAII-based locking of a CriticalSection.
e.g.
Automatically unlocks and re-locks a CriticalSection object.
This is the reverse of a ScopedLock object - instead of locking the critical section for the lifetime of this object, it unlocks it.
Make sure you don't try to unlock critical sections that aren't actually locked!
e.g.
Automatically tries to lock and unlock a CriticalSection object.
Use one of these as a local variable to control access to a CriticalSection.
e.g.