|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.realtime.DSS.WaiterSet
javax.realtime.DSS.FIFOWaiterSet
Collection type for queues of
RealTimeThread's
waiting for a Resource.
FIFO order is used.
| Field Summary |
| Fields inherited from class javax.realtime.DSS.WaiterSet |
waiters |
| Constructor Summary | |
FIFOWaiterSet()
Void constructor. |
|
| Method Summary | |
RealtimeThread |
dequeue()
Dequeue the next RealTimeThread
from this WaiterSet. |
void |
enqueue(RealtimeThread thread)
Enqueue the given RealTimeThread. |
RealtimeThread |
first()
Get the first item in this FIFOWaiterSet, which is assumed to be non-empty. |
boolean |
remove(RealtimeThread thread)
Remove a given thread from this FIFOWaiterSet. |
java.lang.String |
toString()
Construct a printable representation of this FIFOWaiterSet |
| Methods inherited from class javax.realtime.DSS.WaiterSet |
isEmpty, iterator, size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FIFOWaiterSet()
| Method Detail |
public boolean remove(RealtimeThread thread)
FIFOWaiterSet.
remove in class WaiterSetthread - the RealTimeThread
to be removed.
public RealtimeThread dequeue()
RealTimeThread
from this WaiterSet.
dequeue in class WaiterSetRealTimeThread dequeued.public void enqueue(RealtimeThread thread)
RealTimeThread.
Order is by FIFO.
enqueue in class WaiterSetthread - the RealTimeThread to be
enqueued.public RealtimeThread first()
FIFOWaiterSet, which is assumed to be non-empty. Do not dequeue
that item.
first in class WaiterSetpublic java.lang.String toString()
FIFOWaiterSet
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||