public void countDown(int count){
  sync.releaseShared(1 * (Math.abs(count)));
}

public void countDown ( int count ) { sync . releaseShared ( 1 * ( Math . abs ( count ) ) ) ; }
decrements the count of the latch , releasing all waiting threads if the count reaches zero . < p > if the current count is greater than zero then it is decremented . if the new count is zero then all waiting threads are re - enabled for thread scheduling purposes . < p > if the current count equals zero then nothing happens .
