java::lang::Lock Class Reference

Inheritance diagram for java::lang::Lock:

Inheritance graph
java::lang::Syncjava::lang::ScopeAdapterjava::lang::Interfacejava::lang::Objectjava::awt::Componentjava::awt::event::ActionSourcejava::awt::event::AdjustmentSourcejava::awt::event::AWTEventSourcejava::awt::event::ComponentSourcejava::awt::event::ContainerSourcejava::awt::event::FocusSourcejava::awt::event::HierarchySourcejava::awt::event::ItemSourcejava::awt::ItemCheckablejava::awt::event::KeySourcejava::awt::event::MouseSourcejava::awt::event::PaintSourcejava::awt::event::TextSourcejava::awt::event::WindowSourcejava::awt::MenuComponentjava::net::DatagramPacketjava::util::PropertyChangeSourcejava::util::TimerTaskjava::awt::Buttonjava::awt::Canvasjava::awt::Checkboxjava::awt::Choicejava::awt::Containerjava::awt::Labeljava::awt::ListBoxjava::awt::Scrollbarjava::awt::TextComponentjava::awt::Paneljava::awt::Windowjava::awt::Dialogjava::awt::Framejava::awt::TextAreajava::awt::TextFieldjava::awt::MenuItemjava::awt::CheckboxMenuItemjava::awt::Menujava::awt::MenuBar
[legend]
Collaboration diagram for java::lang::Lock:

Collaboration graph
java::lang::ScopeAdapterjava::lang::Interfacejava::lang::Object
[legend]

List of all members.


Detailed Description

The lock interface should be implemented by any class whose instances are intended to be locked and unlocked.

Author:
Yuh-Jye Chang
Version:
1.21, 02/02/00
Since:
JDK1.0

Public Member Functions

virtual void enter ()
 Operation that take place when enter into scope.
virtual void exit ()
 Operation that take place when exit the scope.
virtual void lock ()=0
 Lock this object.
virtual void unlock ()=0
 Unlock this object.

Member Function Documentation

virtual void java::lang::Lock::enter (  )  [virtual]

Operation that take place when enter into scope.

Implements java::lang::ScopeAdapter.

virtual void java::lang::Lock::exit (  )  [virtual]

Operation that take place when exit the scope.

Implements java::lang::ScopeAdapter.

virtual void java::lang::Lock::lock (  )  [pure virtual]

Lock this object.

Implemented in java::lang::Sync.

virtual void java::lang::Lock::unlock (  )  [pure virtual]

Unlock this object.

Implemented in java::lang::Sync.


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:39 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3