diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-06-28 23:01:53 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-06-29 11:41:10 +0900 |
commit | 9eae8cdefba61e9e51feb30a4b98525593169666 (patch) | |
tree | b54d8502f7e7733e48c798e517f7676bf0395a51 /test/ruby/test_settracefunc.rb | |
parent | 983c9ad3f197ab8612c08ea894765b43ed089749 (diff) |
Prefer qualified names under Thread
Diffstat (limited to 'test/ruby/test_settracefunc.rb')
-rw-r--r-- | test/ruby/test_settracefunc.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index c8ec81c72a..dafe58d70c 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -1984,7 +1984,7 @@ class TestSetTraceFunc < Test::Unit::TestCase def test_thread_add_trace_func events = [] base_line = __LINE__ - q = Queue.new + q = Thread::Queue.new t = Thread.new{ Thread.current.add_trace_func proc{|ev, file, line, *args| events << [ev, line] @@ -2010,7 +2010,7 @@ class TestSetTraceFunc < Test::Unit::TestCase # other thread events = [] - m2t_q = Queue.new + m2t_q = Thread::Queue.new t = Thread.new{ Thread.current.abort_on_exception = true @@ -2320,8 +2320,8 @@ class TestSetTraceFunc < Test::Unit::TestCase events << Thread.current end - q1 = Queue.new - q2 = Queue.new + q1 = Thread::Queue.new + q2 = Thread::Queue.new th = Thread.new{ q1 << :ok; q2.pop |