method
mon_exit
v8.0.0 -
Show latest stable
- Class:
ActiveSupport::Concurrency::ThreadLoadInterlockAwareMonitor
mon_exit()private
No documentation available.
# File activesupport/lib/active_support/concurrency/load_interlock_aware_monitor.rb, line 60
def mon_exit
unless @owner == Thread.current
raise ThreadError, "current thread not owner"
end
@count -= 1
return unless @count == 0
@owner = nil
@mutex.unlock
end