All Packages  This Package  Class Hierarchy  Class Search  Index

Class utah.npm.core.Lockable
java.lang.Object
   |
   +----utah.npm.core.Lockable

  Summary

class  Lockable
     extends java.lang.Object
{
          // Fields 1
     private final Lock lock_;

          // Constructors 1
     public Lockable();

          // Methods 4
     final void s_assertLocked();
     final void s_assertUnlocked();
     final void s_lock();
     final void s_unlock();
}

Associate a lock with an object by subclassing. Subclasses of Lockable can be locked and unlocked.

Version:
NPMJava 0.5.0 April, 1998
Author:
Patrick Tullmann tullmann@cs.utah.edu

See Also: Lock


  Cross Reference

Extended By:
NPMObject, ThreadWait





  Fields

· lock_

Summary  |  Top
   private final Lock lock_


  Constructors

· Lockable

Summary  |  Top

   public Lockable() 

Default constructor



  Methods

· s_assertLocked

Summary  |  Top
   final void s_assertLocked() 

Assert that this object is locked



· s_assertUnlocked

Summary  |  Top
   final void s_assertUnlocked() 

assert that this object is unlocked (actually, assert that this object is not locked by the current thread.)



· s_lock

Summary  |  Top
   final void s_lock() 

Acquire the lock on this object.



· s_unlock

Summary  |  Top
   final void s_unlock() 

Release the lock on this object.



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7