Import with #import "std/mutex_linux".

Mutex :: struct { storage: [8]u64; opened: bool; }
Address :: (mutex: *Mutex) -> *void
Open :: (mutex: *Mutex) -> bool
Close :: (mutex: *Mutex) -> bool
Lock :: (mutex: *Mutex) -> bool
Unlock :: (mutex: *Mutex) -> bool

Source ↗ · All modules