All Packages  This Package  Class Hierarchy  Class Search  Index

Class utah.npm.core.Cond


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

NPMJava 0.5.0 April, 1998
Patrick Tullmann


· inheritor_

Summary  |  Top

   Link inheritor_


· Cond

Summary  |  Top

   public Cond() 

· Cond

Summary  |  Top
   public Cond(int hashCode) 


· s_init

Summary  |  Top
   void s_init(int hashCode) 
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.

destroy in class Refable

· toString

Summary  |  Top
   public String toString() 

Return the string representation of this condition variable.

the string "Cond Var".
toString in class NPMObject

· finalize

Summary  |  Top
   public void finalize() 

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

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.

the string "Cond".
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.

the integer NPMObject.CondType
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