Class Mutex
In: lib/mongo/util/core_ext.rb
Parent: Object

Methods

External Aliases

lock -> lock_without_hack

Public Instance methods

lock()

Alias for lock_with_hack

[Source]

# File lib/mongo/util/core_ext.rb, line 92
    def lock_with_hack
      lock_without_hack
      rescue ThreadError => e
      if e.message != "deadlock; recursive locking"
        raise
      else
        unlock
        lock_without_hack
      end
    end

[Validate]