Class jls.lang.Monitor

A monitor provides a means to synchronize threads. Notification involves passing synchronization information among cooperating threads.
Defined in: Monitor.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a monitor.
Method Summary
Method Attributes Method Name and Description
 
Closes this monitor.
 
Wakes up a single thread that is waiting on this monitor.
 
wait(timeout)
Causes the current thread to wait until another thread invokes the notify method of this monitor.
Class Detail
jls.lang.Monitor()
Creates a monitor. A monitor provides a means to synchronize threads.
Method Detail
{jls.lang.Monitor} close()
Closes this monitor.
Returns:
{jls.lang.Monitor} This monitor.

{jls.lang.Monitor} notify()
Wakes up a single thread that is waiting on this monitor.
Returns:
{jls.lang.Monitor} This monitor.

{jls.lang.Monitor} wait(timeout)
Causes the current thread to wait until another thread invokes the notify method of this monitor.
Parameters:
{Number} timeout Optional
The maximum time to wait in milliseconds.
Returns:
{jls.lang.Monitor} This monitor.

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