commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: Patch: gnu.java.nio.SelectorImpl


From: Michael Koch
Subject: FYI: Patch: gnu.java.nio.SelectorImpl
Date: Thu, 8 Jan 2004 09:49:26 +0100
User-agent: KMail/1.5.4

Hi list,


I commited the attached patch to merge fixes made by Mohan Embar to libgcj's 
Java NIO.


Michael


2004-01-08  Mohan Embar  <address@hidden>

        * gnu/java/nio/SelectorImpl.java
        (selectThreadMutex): New field.
        (selectThread): New field.
        (unhandledWakeup): New field.
        (implCloseSelector): Added skeleton code which
        synchronizes as per Sun JRE JavaDoc.
        (keys): Throw ClosedSelectorException if selector
        is closed.
        (selectNow): Added comment that we're faking out
        an immediate select with a one-microsecond-timeout one.
        (select): Use 0 instead of -1 for infinite timeout.
        (implSelect): Changed comment in declaration.
        (select): Added synchronized to method declaration.
        Added synchronization and wakeup support as per Sun
        JRE JavaDoc.
        (selectedKeys): Throw ClosedSelectorException if selector
        is closed.
        (wakeup): Implemented.
        (deregisterCancelledKeys): Synchronize on cancelled key
        set before deregistering.
        (register): Synchronize on key set before registering.

Attachment: nio.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]