|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.renesys.raceway.SSF.Entity
|
+--SSF.OS.Resource
This class provides the first-come, first serve queue for a shared resource. The processing delays accumulate, preserving the temporal ordering of request arrivals.
ProtocolSession| Constructor Summary | |
Resource()
|
|
| Method Summary | |
long |
currentWait()
|
boolean |
reserve(long ticks,
boolean blocking)
Reserve the resource for the given number of ticks. |
boolean |
reserve(long ticks,
Continuation c,
boolean blocking)
Reserve the resource for the given number of ticks. |
| Methods inherited from class com.renesys.raceway.SSF.Entity |
alignment, alignTo, coalignedEntities, inChannels, init, joinAll, makeIndependent, now, outChannels, pauseAll, playRole, processes, resetSimulation, resumeAll, startAll, startAll, startClient, startClient, startServer, Vx, Yx |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Resource()
| Method Detail |
public long currentWait()
public boolean reserve(long ticks,
boolean blocking)
public boolean reserve(long ticks,
Continuation c,
boolean blocking)
A reservation is rejected when the blocking flag is false and the resource is busy.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||