@ Deprecated protected synchronized void workerDone ( Worker w , boolean taskDied ) { threads_ . remove ( w ) ; if ( taskDied ) { -- activeThreads ; -- poolSize_ ; } if ( poolSize_ == 0 && shutdown_ ) { maximumPoolSize_ = minimumPoolSize_ = 0 ; // disable new threads notifyAll ( ) ; // notify awaitTerminationAfterShutdown } fireThreadDestroyed ( poolSize_ ) ; }
Cleanup method called upon termination of worker thread .