All Packages  This Package  Class Hierarchy  Class Search  Index

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

  Summary

public final class  Cond
     extends utah.npm.core.Refable
{
          // Fields 1
     Link inheritor_;

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

          // Methods 9
     static String typeName();

     public void broadcast();
     public void destroy();
     public void finalize();
     void s_init(int);
     int s_type();
     public void signal();
     public String toString();
     public void wait(Mutex);
}

Cond implements the NPM specified Condition Variable object. Cond objects are guaranteed to exist in the typespace of all Processes and to work across Process boundaries.

TODO: CPU Inheritance scheduling support

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




  Fields

· inheritor_

Summary  |  Top

   Link inheritor_


  Constructors

· Cond

Summary  |  Top

   public Cond() 


· Cond

Summary  |  Top
   public Cond(int hashCode) 


  Methods

· s_init

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


· wait

Summary  |  Top
   public void wait(Mutex mutex) 

The current thread will block on this condition variable until some other thread issues a signal. The associated mutex must be locked. It is the responsibility of the application to correctly associate a mutex with a condition variable. The mutex will be reacquired when the thread is woken. There may be spurious wakeups.

Parameter Description
mutex The locked mutex to unlock when blocking and reacquire when awoken.



· signal

Summary  |  Top
   public void signal() 

Wake a single thread blocked on this condition variable. "Unused" signals are not saved.



· broadcast

Summary  |  Top
   public void broadcast() 

Wake all threads currently blocked on this condition variable.



· destroy

Summary  |  Top
   public void destroy() 

Destroy this condition variable. Any outstanding references to this object will be nullified.

Overrides:
destroy in class Refable


· toString

Summary  |  Top
   public String toString() 

Return the string representation of this condition variable.

Returns:
the string "Cond Var".
Overrides:
toString in class NPMObject


· finalize

Summary  |  Top
   public void finalize() 

The finalizer called if the GC system collects this object. Simply calls destroy()

Overrides:
finalize in class Refable

See Also: destroy



· typeName

Summary  |  Top
   static String typeName() 

For debugging, return the type name of an instance of this object.

Returns:
the string "Cond".
Overrides:
typeName in class NPMObject


· s_type

Summary  |  Top
   int s_type() 

Return the internal identifier for this type. See NPMObject for a list of all type identifiers.

Returns:
the integer NPMObject.CondType
Overrides:
s_type in class NPMObject

See Also: NPMObject



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