Static methods

staticdestroy(this:Mutex):Void

Cleans up a mutex.

staticinit(?recursive:Bool):Result<Mutex>

Allocates and initializes a mutex.

staticlock(this:Mutex):Void

Takes the mutex.

The calling thread is blocked until it obtains the mutex.

statictryLock(this:Mutex):Result<NoData>

Tries to take the mutex without blocking.

staticunlock(this:Mutex):Void

Releases the mutex.