Sha256: a485e1f7332b385631f437f1cd26c76083217f3ca432dbe6289808ff40d8a9da

Contents?: true

Size: 149 Bytes

Versions: 19

Compression:

Stored size: 149 Bytes

Contents

class Mutex
  def synchronize
    sleep 0.1 if @working
    @working = true
    begin
      yield
    ensure
      @working = false
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
knjrbfw-0.0.23 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.22 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.21 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.20 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.19 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.18 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.17 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.16 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.15 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.14 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.13 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.12 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.11 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.10 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.9 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.8 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.7 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.4 lib/knj/rhodes/mutex.rb
knjrbfw-0.0.3 lib/knj/rhodes/mutex.rb