question: protected void checkPauseAndWait ( ) { pauseLock . lock ( ) ; try { while ( paused && ! stopped ) { pausedCondition . await ( ) ; } } catch ( InterruptedException e ) { } finally { pauseLock . unlock ( ) ; } }
target:  This method is run by Threads in the ThreadPool and checks if the scan is paused and, if it is, waits until it's unpaused.