lib/garcon/task/count_down_latch.rb
# Signal the latch to decrement the counter. Will signal all blocked
# threads when the `count` reaches zero.
#
Signal the latch to decrement the counter. Will signal all blocked
threads when the `count` reaches zero.
Signal the latch to decrement the counter . Will signal all blocked threads when the ` count ` reaches zero .
def count_down
      @mutex.synchronize do
        @count -= 1 if @count > 0
        @condition.broadcast if @count == 0
      end
    end
def count_down @mutex . synchronize do @count -= 1 if @count > 0 @condition . broadcast if @count == 0 end end
Signal the latch to decrement the counter.
Signal the latch to decrement the counter .