method

unlock

v1_8_7_330 - Show latest stable - Class: DEBUGGER__::Mutex
unlock()
public

No documentation available.

# File lib/debug.rb, line 46
  def unlock
    return if Thread.critical
    return unless @locked
    unless @locker == Thread.current
      raise RuntimeError, "unlocked by other"
    end
    Thread.critical = true
    t = @waiting.shift
    @locked = false
    @locker = nil
    Thread.critical = false
    t.run if t
    self
  end