677f99cce5
(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. * java/nio/channels/spi/AbstractSelector.java Added import for java.nio.channels.ClosedSelectorException. (close): Added synchronized to method declaration. (cancelledKeys): Throw ClosedSelectorException if selector is closed. (cancelKey): Synchronize on cancelled key set before key. From-SVN: r74879 |
||
---|---|---|
.. | ||
spi | ||
AlreadyConnectedException.java | ||
AsynchronousCloseException.java | ||
ByteChannel.java | ||
CancelledKeyException.java | ||
Channel.java | ||
Channels.java | ||
ClosedByInterruptException.java | ||
ClosedChannelException.java | ||
ClosedSelectorException.java | ||
ConnectionPendingException.java | ||
DatagramChannel.java | ||
FileChannel.java | ||
FileChannelImpl.java | ||
FileLock.java | ||
FileLockInterruptionException.java | ||
GatheringByteChannel.java | ||
IllegalBlockingModeException.java | ||
IllegalSelectorException.java | ||
InterruptibleChannel.java | ||
natFileChannelImpl.cc | ||
NoConnectionPendingException.java | ||
NonReadableChannelException.java | ||
NonWritableChannelException.java | ||
NotYetBoundException.java | ||
NotYetConnectedException.java | ||
OverlappingFileLockException.java | ||
Pipe.java | ||
ReadableByteChannel.java | ||
ScatteringByteChannel.java | ||
SelectableChannel.java | ||
SelectionKey.java | ||
Selector.java | ||
ServerSocketChannel.java | ||
SocketChannel.java | ||
UnresolvedAddressException.java | ||
UnsupportedAddressTypeException.java | ||
WritableByteChannel.java |