class RSpec::Core::Mutex

def lock

Other tags:
    Private: -
def lock
  while Thread.critical = true && @locked
    @waiting.push Thread.current
    Thread.stop
  end
  @locked = true
  Thread.critical = false
  self
end