JUCE
|
Classes | |
class | CriticalSection |
A re-entrant mutex. More... | |
class | DummyCriticalSection |
A class that can be used in place of a real CriticalSection object, but which doesn't perform any locking. More... | |
struct | DummyCriticalSection::ScopedLockType |
A dummy scoped-lock type to use with a dummy critical section. More... | |
Typedefs | |
typedef CriticalSection::ScopedLockType | ScopedLock |
Automatically locks and unlocks a CriticalSection object. More... | |
typedef CriticalSection::ScopedUnlockType | ScopedUnlock |
Automatically unlocks and re-locks a CriticalSection object. More... | |
typedef CriticalSection::ScopedTryLockType | ScopedTryLock |
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.