Should java/nio/channels/spi/AbstractInterruptibleChannel.java#isOpen be synchronized ?
Alan.Bateman at oracle.com
Wed Dec 5 02:10:41 PST 2012
On 05/12/2012 02:47, Sean Chou wrote:
> A small problem I'm still checking. So the closeLock is just to make
> sure the channel is closed only once, is that right?
This is how close is specified:
"If this channel is already closed then invoking this method has no effect.
This method may be invoked at any time. If some other thread has already
invoked it, however, then another invocation will block until the first
invocation is complete, after which it will return without effect."
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nio-dev