This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] for Review: SelectorImpl.wakeup() + Synchronization


Hi Michael,

>Please read the documentation of AbstractSelector.end() and you will
>see. I think the same applies to AbstractInterruptableChannel.end().

>They throw exceptions if the select (or another blocking IO operation)
>was interrupted somehow.

Nope. AbstractSelector.end() doesn't throw any exceptions. Selector.select()
shouldn't throw exceptions with thread interruption.

Reading the JavaDoc, I think I see how they want us to implement interruption,
but I think they way we've implemented interruptible I/O on POSIX and Win32
precludes us from doing this and forces us to do the inverse: that wakeup()
uses Thread.interrupt() under the covers.

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]