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

ruby-changes:34570

From: nobu <ko1@a...>
Date: Wed, 2 Jul 2014 15:26:25 +0900 (JST)
Subject: [ruby-changes:34570] nobu:r46651 (trunk): webrick/utils.rb: mark by class name

nobu	2014-07-02 15:26:02 +0900 (Wed, 02 Jul 2014)

  New Revision: 46651

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46651

  Log:
    webrick/utils.rb: mark by class name
    
    * lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler::Thread):
      use particular class to mark by the class name.

  Modified files:
    trunk/lib/webrick/utils.rb
Index: lib/webrick/utils.rb
===================================================================
--- lib/webrick/utils.rb	(revision 46650)
+++ lib/webrick/utils.rb	(revision 46651)
@@ -129,6 +129,8 @@ module WEBrick https://github.com/ruby/ruby/blob/trunk/lib/webrick/utils.rb#L129
     class TimeoutHandler
       include Singleton
 
+      class Thread < ::Thread; end
+
       ##
       # Mutex used to synchronize access across threads
       TimeoutMutex = Mutex.new # :nodoc:
@@ -158,9 +160,6 @@ module WEBrick https://github.com/ruby/ruby/blob/trunk/lib/webrick/utils.rb#L160
       def initialize
         @timeout_info = Hash.new
         Thread.start{
-          def (Thread.current).inspect
-            super.sub(/>\z/, ' (WEBrick::Utils::TimeoutHandler)>')
-          end
           while true
             now = Time.now
             @timeout_info.keys.each{|thread|

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

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