Usage
var x = new(Mutex);
with (mut in x) { /* Lock Mutex */
print("Inside Mutex!\n");
} /* Unlock Mutex */
Mutual Exclusion Lock
The Mutex
type can be used to gain mutual exclusion across Threads for access to some resource.
$
alloc
dealloc
assign
cast
cmp
eq
neq
gt
lt
ge
le
copy
hash
hash_data
size
swap
name
brief
description
definition
lock
trylock
unlock
new
del
construct
destruct
with
start
stop
join
running