[前][次][番号順一覧][スレッド一覧]

ruby-changes:72532

From: Jean <ko1@a...>
Date: Wed, 13 Jul 2022 21:16:23 +0900 (JST)
Subject: [ruby-changes:72532] 8290d76647 (master): [ruby/timeout] Give a name to the background thread

https://git.ruby-lang.org/ruby.git/commit/?id=8290d76647

From 8290d76647f8db9df6d18c654d723b14cf0b3507 Mon Sep 17 00:00:00 2001
From: Jean Boussier <jean.boussier@g...>
Date: Wed, 13 Jul 2022 13:48:21 +0200
Subject: [ruby/timeout] Give a name to the background thread

https://github.com/ruby/timeout/commit/5594ae2f4d
---
 lib/timeout.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/timeout.rb b/lib/timeout.rb
index 95dd1490ae..2aad1d7465 100644
--- a/lib/timeout.rb
+++ b/lib/timeout.rb
@@ -120,6 +120,7 @@ module Timeout https://github.com/ruby/ruby/blob/trunk/lib/timeout.rb#L120
         requests.reject!(&:done?)
       end
     end
+    watcher.name = "Timeout stdlib thread"
     watcher.thread_variable_set(:"\0__detached_thread__", true)
     watcher
   end
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]