Sha256: 29c567fe1f95c7c5badfe3cd5b8ac65c630934789a6266d0410c2cd466fc218a

Contents?: true

Size: 120 Bytes

Versions: 35

Compression:

Stored size: 120 Bytes

Contents

require 'thread'
class Object
  def synchronize(&block)
    @mutex ||= Mutex.new
    @mutex.synchronize &block
  end
end

Version data entries

35 entries across 35 versions & 9 rubygems

Version Path
eric-adhearsion-0.7.999 lib/adhearsion/core_extensions/thread_safety.rb
eric-adhearsion-0.8.0 lib/adhearsion/foundation/thread_safety.rb
jicksta-adhearsion-0.7.999 lib/adhearsion/foundation/thread_safety.rb
jicksta-adhearsion-0.8.0 lib/adhearsion/foundation/thread_safety.rb
jicksta-adhearsion-0.8.2 lib/adhearsion/foundation/thread_safety.rb
jicksta-adhearsion-0.8.3 lib/adhearsion/foundation/thread_safety.rb
kenwiesner-adhearsioncw-0.8.3 lib/adhearsion/foundation/thread_safety.rb
mtrudel-adhearsion-0.8.3 lib/adhearsion/foundation/thread_safety.rb
sant0sk1-adhearsion-0.7.999 lib/adhearsion/core_extensions/thread_safety.rb
sevenscale-adhearsion-0.7.1000 lib/adhearsion/core_extensions/thread_safety.rb
sevenscale-adhearsion-0.7.1003 lib/adhearsion/core_extensions/thread_safety.rb
sevenscale-adhearsion-0.8.0 lib/adhearsion/foundation/thread_safety.rb
adhearsion-1.2.6 lib/adhearsion/foundation/thread_safety.rb
adhearsion-1.2.5 lib/adhearsion/foundation/thread_safety.rb
adhearsion-1.2.4 lib/adhearsion/foundation/thread_safety.rb
adhearsion-1.2.3 lib/adhearsion/foundation/thread_safety.rb
adhearsion-1.2.1 lib/adhearsion/foundation/thread_safety.rb
adhearsion-1.2.0 lib/adhearsion/foundation/thread_safety.rb
adhearsion-1.1.1 lib/adhearsion/foundation/thread_safety.rb
adhearsion-1.1.0 lib/adhearsion/foundation/thread_safety.rb