class Mutex
Public Instance Methods
synchronize() { || ... }
click to toggle source
# File lib/knj/rhodes/mutex.rb, line 2 def synchronize sleep 0.05 while @working @working = true begin yield ensure @working = false end end