|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
se.lth.cs.realtime.event.RTEvent
se.lth.cs.realtime.event.RendezvousEvent
Support rendezvous between an event producer and an event consumer.
License
,
Serialized FormField Summary |
Fields inherited from class se.lth.cs.realtime.event.RTEvent |
owner, ticker, timestamp |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
RendezvousEvent()
Create empty event, without shared data and without work to be done, which can be useful to only synchronize execution. |
Method Summary | |
void |
accept(java.lang.Object arg)
Accept the rendezvous and call call to carry out any work
using the shared data as provided in subclasses of this class. |
protected void |
call(java.lang.Object arg)
The work to be carried out by the tread accepting the rendezvous. |
void |
entry(RTEventListener worker)
Enter the rendezvous where blocking should occur while the accepting thread carries out all transfers involving shared data. |
Methods inherited from class se.lth.cs.realtime.event.RTEvent |
getMillis, getNanos, getOwner, getSeconds, getTicks, getTimebase, paramString, setOwner, toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RendezvousEvent()
Method Detail |
public final void accept(java.lang.Object arg)
call
to carry out any work
using the shared data as provided in subclasses of this class.
arg
- additional local data provided by the accepting thread.protected void call(java.lang.Object arg)
arg
- to be provided by the accepting thread, as an argument to
the accept
method, thereby giving access
data in the context of the accepting thread.public final void entry(RTEventListener worker)
worker
- the thread that is expected to accept the rendezvous.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |