All Packages  This Package  Class Hierarchy  Class Search  Index

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

  Summary

public final class  Mutex
     extends utah.npm.core.Refable
{
          // Fields 2
     private Link owner_;
     private Lock s_mutex_;

          // Constructors 2
     public Mutex();
     public Mutex(int);

          // Methods 8
     static String typeName();

     public void destroy();
     public void lock();
     void s_init(int);
     int s_type();
     public String toString();
     public boolean trylock();
     public void unlock();
}

Implement an NPM Mutex object. Mutex objects are guaranteed to exists in the typespace of all Processes and to work across Process boundaries.

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




  Fields

· s_mutex_

Summary  |  Top

   private Lock s_mutex_

The internal Lock object that actually implements the Mutex interface.


· owner_

Summary  |  Top
   private Link owner_

A link to the current owner of the Mutex.

TODO: This information is duplicated at every level of the lock implmenetation.


  Constructors

· Mutex

Summary  |  Top

   public Mutex() 


· Mutex

Summary  |  Top
   public Mutex(int hashCode) 


  Methods

· s_init

Summary  |  Top
   void s_init(int hashCode) 
Overrides:
s_init in class Refable


· destroy

Summary  |  Top
   public void destroy() 
Overrides:
destroy in class Refable


· lock

Summary  |  Top
   public void lock() 


· unlock

Summary  |  Top
   public void unlock() 


· trylock

Summary  |  Top
   public boolean trylock() 


· toString

Summary  |  Top
   public String toString() 
Overrides:
toString in class NPMObject


· typeName

Summary  |  Top
   static String typeName() 
Overrides:
typeName in class NPMObject


· s_type

Summary  |  Top
   int s_type() 
Overrides:
s_type in class NPMObject


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