core.internal.spinlock

SpinLock for runtime internal usage.

Types 2

structSpinLock
Fields
size_t val
Contention contention
Methods
void lock()
void unlock()
void yield(size_t k)yield with backoff
Constructors
this(Contention contention)
Nested Templates
Contentionfor how long is the lock usually contended
Fields
Constructors
this(SpinLock.Contention contention)