method
mon_acquire
v1_8_7_72 -
Show latest stable
- Class:
MonitorMixin
mon_acquire(queue)private
No documentation available.
# File lib/monitor.rb, line 282
def mon_acquire(queue)
while @mon_owner && @mon_owner != Thread.current
queue.push(Thread.current)
Thread.stop
Thread.critical = true
end
@mon_owner = Thread.current
end