Thread module

Mutex

structSource

A lock that lets one thread at a time into a piece of code. Set it up with init, take it with lock, give it back with unlock. It can be locked again by the thread that already holds it.

Fields

See also