60 void enter()
const noexcept;
65 return lock.compareAndSetBool (1, 0);
71 jassert (lock.get() == 1);
Holds a resizable array of primitive or copy-by-value objects.
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.