Class jls.lang.Lock

A lock provides a means to control access to a shared resource by multiple threads. Locking prevents access to some resource, such as a piece of shared data: that is, it enforces mutual exclusion.
Defined in: Lock.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a lock.
Method Summary
Method Attributes Method Name and Description
 
Closes this lock.
 
lock()
Acquires the lock.
 
Releases the lock.
Class Detail
jls.lang.Lock()
Creates a lock. A lock provides a means to control access to a shared resource by multiple threads.
Method Detail
{jls.lang.Lock} close()
Closes this lock.
Returns:
{jls.lang.Lock} This lock.

{jls.lang.Lock} lock()
Acquires the lock.
Returns:
{jls.lang.Lock} This lock.

{jls.lang.Lock} unlock()
Releases the lock.
Returns:
{jls.lang.Lock} This lock.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 02:00:13 GMT+0100 (CET)