class Mutex

Public Instance Methods

lock() click to toggle source
Also aliased as: lock_without_hack
Alias for: lock_with_hack
lock_with_hack() click to toggle source
# File lib/mongo/util/core_ext.rb, line 91
def lock_with_hack
  lock_without_hack
  rescue ThreadError => e
  if e.message != "deadlock; recursive locking"
    raise
  else
    unlock
    lock_without_hack
  end
end
Also aliased as: lock
lock_without_hack() click to toggle source
Alias for: lock