javax.realtime.DSS
Class FIFOResource

java.lang.Object
  extended byjavax.realtime.DSS.Resource
      extended byjavax.realtime.DSS.FIFOResource

public class FIFOResource
extends Resource

Author:
gary

Field Summary
 
Fields inherited from class javax.realtime.DSS.Resource
busyTimeThusFar, count, creationTime, holderThread, lastGrant, lastRelease, name, signalPriorityInversion, waiters
 
Constructor Summary
FIFOResource(java.lang.String name)
           
FIFOResource(java.lang.String name, boolean signalPriorityInversion)
           
 
Method Summary
 void adjustPriority(RealtimeThread thread)
          Adjust the priority of this RealtimeThread, according to resources currently held.
 void release()
          Release this resource.
 void seize()
          Seize this resource, waiting if necessary.
 
Methods inherited from class javax.realtime.DSS.Resource
dutyCycle, finalize, getExtent, giveResourceTo, maxWaiterPriority, printAllStatistics, printStatistics, releaseIfHeld, seize, seizeIfNotHeld, setExtent, toString, waiterIterator
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FIFOResource

public FIFOResource(java.lang.String name,
                    boolean signalPriorityInversion)

FIFOResource

public FIFOResource(java.lang.String name)
Method Detail

seize

public void seize()
           throws java.lang.InterruptedException,
                  ThreadTerminatedException
Description copied from class: Resource
Seize this resource, waiting if necessary.

Specified by:
seize in class Resource
Throws:
java.lang.InterruptedException
ThreadTerminatedException

release

public void release()
             throws ThreadTerminatedException
Description copied from class: Resource
Release this resource.

Specified by:
release in class Resource
Throws:
ThreadTerminatedException

adjustPriority

public void adjustPriority(RealtimeThread thread)
Description copied from class: Resource
Adjust the priority of this RealtimeThread, according to resources currently held.

Specified by:
adjustPriority in class Resource