Method: XThread::RBMonitorMixin#mon_exit
- Defined in:
- lib/xthread/monitor.rb
#mon_exit ⇒ Object
Leaves exclusive section.
188 189 190 191 192 193 194 195 |
# File 'lib/xthread/monitor.rb', line 188 def mon_exit mon_check_owner @mon_count -=1 if @mon_count == 0 @mon_owner = nil @mon_mutex.unlock end end |