Skip to content

SpinMutex

graph BT
N1["SpinMutex"] -->|inherits| N2["Any"];

Characteristics

Quality Value
Inherits global.Any
Extends N/A
Decorators #sealed;
Is enum false
Is sealed true
Is extern false
Is abstract false
Is generator false
Has value semantics false
Has stored properties true
Should register destructor false
Has atomic memory true
Is copy assignable false
Is zero initializable false

Methods

construct

construct (s strictly @Self, init_spin Int64 = 1000) -> Self

lock

lock (s @Self) -> Nil

try_lock

#Gambol.function.alwaysinline
try_lock (s @Self) -> Bool

unlock

#Gambol.function.alwaysinline
unlock (s @Self) -> Nil

Properties

__is_locked

__is_locked Bool

__init_spin

__init_spin Int64