uk.ac.man.cs.rainbow.simulator.rasm
Class Release
java.lang.Object
|
+--uk.ac.man.cs.rainbow.simulator.Instruction
|
+--uk.ac.man.cs.rainbow.simulator.RASM.ChannelBox
|
+--uk.ac.man.cs.rainbow.simulator.rasm.Release
- All Implemented Interfaces:
- Serializable
- public class Release
- extends RASM.ChannelBox
Sends an acknowledgement on an input channel, chanId.
Half of the request/acknowledge system used to implement
rendezvous communications at the reading side.
chanId
-
- See Also:
SignalForward
,
WaitRelease
,
IsAvailable
, Serialized Form
Release
public Release()
Release
public Release(RASMCode code)
toString
public String toString()
- Overrides:
toString
in class Object
execute
protected boolean execute(RASMThread thread,
Channel chan)
throws RASMThread.Exception
- Description copied from class:
RASM.ChannelBox
- Perform an operation on the given thread and channel. The
instruction will be repeated (though with activity going on
in other Rainbow threads) until this method returns
false. Note that no values should be popped off
the stack by this method, and values should only be pushed
onto the stack if the method is about to return
false.
- Overrides:
execute
in class RASM.ChannelBox
- Following copied from class:
uk.ac.man.cs.rainbow.simulator.RASM.ChannelBox
- Returns:
- true if the instruction is to be repeated by
this thread.