java.lang.isolate
Class OneWayLink_Both
java.lang.Object
|
+--java.lang.isolate.Link
|
+--java.lang.isolate.OneWayLink
|
+--java.lang.isolate.OneWayLink_Both
- class OneWayLink_Both
- extends OneWayLink
Implementation of a OneWayLink for the case where the same
Isolate is both the sender and the receiver.
XXX For a sender-heavy or receiver-heavy link, too many folks
are getting woken up on operation.
XXX there is no way for a sender to transmit an object to a
waiting reciever without blocking. The sender always waits at
least once. Should be relatively easy for the OneWayLink_Both
because only a single isolate is involved.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0 |
linkMapAccessor
private static final OneWayLink_Both.LinkMapAccessor linkMapAccessor
linkPoint
private final OneWayLink_Both.LinkPoint linkPoint
OneWayLink_Both
OneWayLink_Both(Isolate sender,
Isolate receiver,
java.lang.String name)
throws ClosedLinkException
lookupLinkPoint
private static OneWayLink_Both.LinkPoint lookupLinkPoint(java.lang.String name)
isOpen
public boolean isOpen()
- Overrides:
isOpen
in class OneWayLink
close
public void close()
- Overrides:
close
in class OneWayLink
send
public boolean send(IsolateMessage lm,
long millis,
int nanos)
throws ClosedLinkException,
LinkSerializationException
- Overrides:
send
in class OneWayLink
receive
public IsolateMessage receive(long millis,
int nanos)
throws ClosedLinkException
- Overrides:
receive
in class OneWayLink
This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003