threading/Mutex

class Mutex
extends:Object
static method new(recursive: Bool)Mutex

Create a new mutex object.

Recursive:if true this mutex will allow for recursive locking in the same thread
static method new~fastMutex
Create a new mutex object. Non-recursive, fast.
method acquire
Acquire a lock on the mutex and blocking until it becomes available.
method tryAcquireBool

Try to acquire a lock on the mutex, but does not block if unavailable.

Returns:true if mutex successfully locked, false if not available
method release
Release the lock on the mutex so other threads can acquire it.

This Page