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.