easy thread-safe class for determining who's the “winner” in a race (i.e. first person to hit the finish line
# File lib/sup/util.rb, line 672 def initialize @m = Mutex.new @over = false end
# File lib/sup/util.rb, line 677 def winner? @m.synchronize { !@over && @over = true } end