Automatically locks and unlocks a mutex object. More...
|GenericScopedLock (const LockType &lock) noexcept|
|Creates a GenericScopedLock. More...|
|~GenericScopedLock () noexcept|
class GenericScopedLock< LockType >
Automatically locks and unlocks a mutex object.
Use one of these as a local variable to provide RAII-based locking of a mutex.
Constructor & Destructor Documentation
Creates a GenericScopedLock.
As soon as it is created, this will acquire the lock, and when the GenericScopedLock object is deleted, the lock will be released.
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.
The lock will be released 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!
The documentation for this class was generated from the following file:
Generated on Fri Jan 12 2018 09:51:19 for JUCE by 1.8.13