busy_for_exclusive?(purpose)
Must be called within synchronize
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 204 def busy_for_exclusive?(purpose) busy_for_sharing?(purpose) || @sharing.size > (@sharing[Thread.current] > 0 ? 1 : 0) end