Class: Mutex
Instance Method Summary collapse
- #lock_with_hack ⇒ Object (also: #lock)
Instance Method Details
#lock_with_hack ⇒ Object Also known as: lock
92 93 94 95 96 97 98 99 100 101 |
# File 'lib/mongo/util/core_ext.rb', line 92 def lock_with_hack lock_without_hack rescue ThreadError => e if e. != "deadlock; recursive locking" raise else unlock lock_without_hack end end |