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