Mercurial > hg > FederatedLinda
changeset 30:fca6eec8016f
*** empty log message ***
author | kono |
---|---|
date | Thu, 21 Aug 2008 18:46:40 +0900 |
parents | 7a74d7396d65 |
children | 846c6c14cf04 |
files | src/fdl/FDLindaServ.java src/fdl/MetaLinda.java |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fdl/FDLindaServ.java Thu Aug 21 10:04:21 2008 +0900 +++ b/src/fdl/FDLindaServ.java Thu Aug 21 18:46:40 2008 +0900 @@ -83,6 +83,11 @@ // セレクタによる監視 try { if (selector.select(timeout)>0) { +// this does not work because #it.remove() is not called. +// for(SelectionKey s:selector.selectedKeys()) { +// TupleHandler handler = (TupleHandler)s.attachment(); +// handler.handle(s); +// } for (Iterator<SelectionKey> it = selector.selectedKeys().iterator();it.hasNext(); ) { SelectionKey s = it.next(); it.remove();
--- a/src/fdl/MetaLinda.java Thu Aug 21 10:04:21 2008 +0900 +++ b/src/fdl/MetaLinda.java Thu Aug 21 18:46:40 2008 +0900 @@ -14,7 +14,6 @@ import java.io.IOException; import java.nio.ByteBuffer; -import java.util.LinkedList; /** MetaLinda @@ -105,7 +104,6 @@ for(r=replies;r!=null&&r.next!=null;r = r.next) { if (r.next.ready()) { // ready() may modify replies list - // bia callback r.next = r.next.next; } }