Skip to content

Commit 5e12b05

Browse files
st0012ko1
authored andcommitted
Rename confusing ThreadClient#is_management method
1 parent 4a7ffb7 commit 5e12b05

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/debug/session.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ def activate on_fork: false
149149
# Thread management
150150
setup_threads
151151
thc = get_thread_client Thread.current
152-
thc.is_management
152+
thc.mark_as_management
153153

154154
if @ui.respond_to?(:reader_thread) && thc = get_thread_client(@ui.reader_thread)
155-
thc.is_management
155+
thc.mark_as_management
156156
end
157157

158158
@tp_thread_begin = TracePoint.new(:thread_begin) do |tp|
@@ -1018,7 +1018,7 @@ def repl_open_setup
10181018
@tp_thread_begin.disable
10191019
@ui.activate self
10201020
if @ui.respond_to?(:reader_thread) && thc = get_thread_client(@ui.reader_thread)
1021-
thc.is_management
1021+
thc.mark_as_management
10221022
end
10231023
@tp_thread_begin.enable
10241024
end

lib/debug/thread_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def management?
100100
@is_management
101101
end
102102

103-
def is_management
103+
def mark_as_management
104104
@is_management = true
105105
end
106106

0 commit comments

Comments
 (0)