public void reset ( ) { if ( released . compareAndSet ( true , false ) ) { synchronized ( releasingLock ) { if ( ! released . get ( ) ) { impl . drainPermits ( ) ; } } } }
Resets the latch to an un - release state .