123456789_123456789_123456789_123456789_123456789_

Class: DEBUGGER__::ProcessGroup

Relationships & Source Files
Inherits: Object
Defined in: lib/debug/session.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.newProcessGroup

[ GitHub ]

  
# File 'lib/debug/session.rb', line 1851

def initialize
  @lock_file = nil
end

Instance Attribute Details

#locked?Boolean (readonly)

[ GitHub ]

  
# File 'lib/debug/session.rb', line 1855

def locked?
  true
end

#multi?Boolean (readonly)

[ GitHub ]

  
# File 'lib/debug/session.rb', line 1878

def multi?
  @lock_file
end

Instance Method Details

#after_fork

[ GitHub ]

  
# File 'lib/debug/session.rb', line 1875

def after_fork
end

#lock

[ GitHub ]

  
# File 'lib/debug/session.rb', line 1863

def lock
  true
end

#multi_process!

[ GitHub ]

  
# File 'lib/debug/session.rb', line 1882

def multi_process!
  require 'tempfile'
  @lock_tempfile = Tempfile.open("ruby-debug-lock-")
  @lock_tempfile.close
  extend MultiProcessGroup
end

#sync

[ GitHub ]

  
# File 'lib/debug/session.rb', line 1871

def sync
  yield
end

#trylock

[ GitHub ]

  
# File 'lib/debug/session.rb', line 1859

def trylock
  true
end

#unlock

[ GitHub ]

  
# File 'lib/debug/session.rb', line 1867

def unlock
  true
end