jdk/src/solaris/classes/sun/nio/ch/Port.java
changeset 22597 7515a991bb37
parent 5506 202f599c92aa
child 22604 9b394795e216
equal deleted inserted replaced
22596:62542b8be764 22597:7515a991bb37
    75             fdToChannelLock.writeLock().unlock();
    75             fdToChannelLock.writeLock().unlock();
    76         }
    76         }
    77     }
    77     }
    78 
    78 
    79     /**
    79     /**
       
    80      * Callback method for implementations that need special handling when fd is
       
    81      * removed (currently only needed in the AIX-Port - see AixPollPort.java).
       
    82      */
       
    83     protected void preUnregister(int fd) {
       
    84         // Do nothing by default.
       
    85     }
       
    86 
       
    87     /**
    80      * Unregister channel identified by its file descriptor
    88      * Unregister channel identified by its file descriptor
    81      */
    89      */
    82     final void unregister(int fd) {
    90     final void unregister(int fd) {
    83         boolean checkForShutdown = false;
    91         boolean checkForShutdown = false;
       
    92 
       
    93         preUnregister(fd);
    84 
    94 
    85         fdToChannelLock.writeLock().lock();
    95         fdToChannelLock.writeLock().lock();
    86         try {
    96         try {
    87             fdToChannel.remove(Integer.valueOf(fd));
    97             fdToChannel.remove(Integer.valueOf(fd));
    88 
    98