src/solaris/classes/sun/nio/ch/Port.java
Print this page
rev 8725 : 8024854: Basic changes and files to build the class library on AIX
Contributed-by: luchsh@linux.vnet.ibm.com, spoole@linux.vnet.ibm.com, thomas.stuefe@sap.com
Reviewed-by: alanb, prr, sla, chegar, michaelm, mullan
*** 74,89 ****
--- 74,97 ----
} finally {
fdToChannelLock.writeLock().unlock();
}
}
+ // Callback method for implementations that need special handling when fd is
+ // removed (currently only needed in the AIX-Port - see AixPollPort.java)
+ void unregisterImpl(int fd) {
+ // Do nothing by default.
+ }
+
/**
* Unregister channel identified by its file descriptor
*/
final void unregister(int fd) {
boolean checkForShutdown = false;
+ unregisterImpl(fd);
+
fdToChannelLock.writeLock().lock();
try {
fdToChannel.remove(Integer.valueOf(fd));
// last key to be removed so check if group is shutdown