Class: DEBUGGER__::ProcessGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/debug/session.rb

Instance Method Summary collapse

Constructor Details

#initializeProcessGroup

Returns a new instance of ProcessGroup.



2030
2031
2032
# File 'lib/debug/session.rb', line 2030

def initialize
  @lock_file = nil
end

Instance Method Details

#after_forkObject



2054
2055
# File 'lib/debug/session.rb', line 2054

def after_fork
end

#lockObject



2042
2043
2044
# File 'lib/debug/session.rb', line 2042

def lock
  true
end

#locked?Boolean

Returns:

  • (Boolean)


2034
2035
2036
# File 'lib/debug/session.rb', line 2034

def locked?
  true
end

#multi?Boolean

Returns:

  • (Boolean)


2057
2058
2059
# File 'lib/debug/session.rb', line 2057

def multi?
  @lock_file
end

#multi_process!Object



2061
2062
2063
2064
2065
2066
# File 'lib/debug/session.rb', line 2061

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

#syncObject



2050
2051
2052
# File 'lib/debug/session.rb', line 2050

def sync
  yield
end

#trylockObject



2038
2039
2040
# File 'lib/debug/session.rb', line 2038

def trylock
  true
end

#unlockObject



2046
2047
2048
# File 'lib/debug/session.rb', line 2046

def unlock
  true
end