instance method
stop_sharing
Ruby on Rails edge
Since v5.0.7.2Signature
stop_sharing()
No documentation comment.
Source
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 134
def stop_sharing
synchronize do
owner = current_owner
if @sharing[owner] > 1
@sharing[owner] -= 1
else
@sharing.delete owner
@cv.broadcast
end
end
end
Defined in activesupport/lib/active_support/concurrency/share_lock.rb line 134
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Concurrency::ShareLock