60 void enter()
const noexcept;
65 return lock.compareAndSetBool (1, 0);
69 inline void exit() const noexcept
71 jassert (lock.get() == 1);
Automatically locks and unlocks a mutex object.
Automatically unlocks and re-locks a mutex object.
A simple spin-lock class that can be used as a simple, low-overhead mutex for uncontended situations.
void exit() const noexcept
Releases the lock.
bool tryEnter() const noexcept
Attempts to acquire the lock, returning true if this was successful.
#define JUCE_API
This macro is added to all JUCE public class declarations.