core.internal.spinlock

SpinLock for runtime internal usage.

Types 2

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