lib/kakegane/countdown_latch.rb
##
# Decrement the count of the latch, releasing the waiting thread when count reaches zero
# * If the count is greater than zero, the count is decremented by 1
# * If the count is equal to zero, the thread is released
Decrement the count of the latch, releasing the waiting thread when count reaches zero
If the count is greater than zero, the count is decremented by 1
If the count is equal to zero, the thread is released
Decrement the count of the latch releasing the waiting thread when count reaches zero If the count is greater than zero the count is decremented by 1 If the count is equal to zero the thread is released
def count_down
      @mutex.synchronize do
        @condition.signal if @count.zero?
        @count -= 1 if @count > 0
      end
    end
def count_down @mutex . synchronize do @condition . signal if @count . zero? @count -= 1 if @count > 0 end end
Decrement the count of the latch, releasing the waiting thread when count reaches zero
 If the count is greater than zero, the count is decremented by 1
 If the count is equal to zero, the thread is released
Decrement the count of the latch releasing the waiting thread when count reaches zero If the count is greater than zero the count is decremented by 1 If the count is equal to zero the thread is released