Class: DEBUGGER__::ProcessGroup
Instance Method Summary collapse
- #after_fork ⇒ Object
-
#initialize ⇒ ProcessGroup
constructor
A new instance of ProcessGroup.
- #lock ⇒ Object
- #locked? ⇒ Boolean
- #multi? ⇒ Boolean
- #multi_process! ⇒ Object
- #sync ⇒ Object
- #trylock ⇒ Object
- #unlock ⇒ Object
Constructor Details
#initialize ⇒ ProcessGroup
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_fork ⇒ Object
2054 2055 |
# File 'lib/debug/session.rb', line 2054 def after_fork end |
#lock ⇒ Object
2042 2043 2044 |
# File 'lib/debug/session.rb', line 2042 def lock true end |
#locked? ⇒ Boolean
2034 2035 2036 |
# File 'lib/debug/session.rb', line 2034 def locked? true end |
#multi? ⇒ 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 |
#sync ⇒ Object
2050 2051 2052 |
# File 'lib/debug/session.rb', line 2050 def sync yield end |
#trylock ⇒ Object
2038 2039 2040 |
# File 'lib/debug/session.rb', line 2038 def trylock true end |
#unlock ⇒ Object
2046 2047 2048 |
# File 'lib/debug/session.rb', line 2046 def unlock true end |