static TimePoint now()
Get current time.
Definition: Clock.h:48
Thread class.
Definition: Thread.h:128
A thread lock where the lock is acquired through a busy wait loop.
Definition: Spin.h:17
bool tryLock(MonoClock::Duration time)
Attempt to acquire the lock for an amount of time. Returns true if the lock was acquired, false otherwise.
Definition: Spin.h:39
~SpinLock()
Definition: Spin.h:26
Super::TimePoint TimePoint
Definition: Clock.h:40
bool tryLock()
Attempt to acquire the lock, returns immediately. Returns true if the lock was acquired, false otherwise.
Definition: Spin.cpp:34
SpinLock()
Definition: Spin.h:22
void lock()
Acquire the lock. Thread waits in a busy loop until lock becomes available.
Definition: Spin.cpp:9
Super::ThreadId ThreadId
Definition: Thread.h:140
SpinLock & operator=(const SpinLock &)
Can't copy, silently does nothing.
Definition: Spin.h:29
SpinLock(const SpinLock &)
Can't copy, silently inits to default.
Definition: Spin.h:24
UniqueLock< SpinLock > Scoped
Definition: Spin.h:20
void unlock()
Release the lock.
Definition: Spin.cpp:19
TimePoint::Duration Duration
Definition: Clock.h:41
Global Honeycomb namespace.