instance method
busy_for_exclusive?
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
busy_for_exclusive?(purpose)
Must be called within synchronize
Parameters
-
purposereq
Source
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 205
def busy_for_exclusive?(purpose)
busy_for_sharing?(purpose) ||
@sharing.size > (@sharing[Thread.current] > 0 ? 1 : 0)
end
Defined in activesupport/lib/active_support/concurrency/share_lock.rb line 205
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Concurrency::ShareLock