Module jls.lang.Lock

Provides mutual exclusion for the threads in the current process.

Class Lock

Lock:new () Creates a new Lock.
lock:lock () Acquires the lock, blocking if necessary.
lock:unlock () Releases the lock.
lock:tryLock () Returns true if the lock has been acquired without blocking.


Class Lock

The Lock class.
Lock:new ()
Creates a new Lock.
lock:lock ()
Acquires the lock, blocking if necessary.
lock:unlock ()
Releases the lock.
lock:tryLock ()
Returns true if the lock has been acquired without blocking.

Returns:

    boolean true if the lock has been acquired
generated by LDoc 1.5.0