suspend() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/debug.rb, line 808
  def suspend
    saved_crit = Thread.critical
    Thread.critical = true
    make_thread_list
    for th, in @thread_list
      next if th == Thread.current
      context(th).set_suspend
    end
    Thread.critical = saved_crit
    # Schedule other threads to suspend as soon as possible.
    Thread.pass unless Thread.critical
  end
Register or log in to add new notes.