method
stop_sharing
rails latest stable - Class:
ActiveSupport::Concurrency::ShareLock
stop_sharing()public
No documentation available.
# File activesupport/lib/active_support/concurrency/share_lock.rb, line 131
def stop_sharing
synchronize do
if @sharing[Thread.current] > 1
@sharing[Thread.current] -= 1
else
@sharing.delete Thread.current
@cv.broadcast
end
end
end