method

mon_acquire

ruby latest stable - Class: MonitorMixin

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

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