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

ruby-changes:38787

From: naruse <ko1@a...>
Date: Sat, 13 Jun 2015 19:58:22 +0900 (JST)
Subject: [ruby-changes:38787] naruse:r50868 (trunk): add Thread.name and Thread.name= docs Feature #11251 [ci skip]

naruse	2015-06-13 19:58:14 +0900 (Sat, 13 Jun 2015)

  New Revision: 50868

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

  Log:
    add Thread.name and Thread.name= docs Feature #11251 [ci skip]

  Modified files:
    trunk/ChangeLog
    trunk/NEWS
    trunk/thread.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50867)
+++ ChangeLog	(revision 50868)
@@ -10,7 +10,7 @@ Sat Jun 13 17:35:11 2015  NARUSE, Yui  < https://github.com/ruby/ruby/blob/trunk/ChangeLog#L10
 
 	* vm.c (th_init): initialize th->name.
 
-	* thread.c (Init_Thread): add Thread.name and Thread.name=.
+	* thread.c (Init_Thread): add Thread.name and name=. [Feature #11251]
 
 	* thread.c (rb_thread_inspect): show thread's name if set.
 
Index: thread.c
===================================================================
--- thread.c	(revision 50867)
+++ thread.c	(revision 50868)
@@ -2719,7 +2719,7 @@ rb_thread_safe_level(VALUE thread) https://github.com/ruby/ruby/blob/trunk/thread.c#L2719
  * call-seq:
  *   thr.name   -> string
  *
- * Dump the name, id, and status of _thr_ to a string.
+ * show the name of the thread.
  */
 
 static VALUE
@@ -2734,7 +2734,8 @@ rb_thread_getname(VALUE thread) https://github.com/ruby/ruby/blob/trunk/thread.c#L2734
  * call-seq:
  *   thr.name=(name)   -> string
  *
- * Dump the name, id, and status of _thr_ to a string.
+ * set given name to the ruby thread.
+ * On some platform, it may set the name to pthread and/or kernel.
  */
 
 static VALUE
Index: NEWS
===================================================================
--- NEWS	(revision 50867)
+++ NEWS	(revision 50868)
@@ -51,6 +51,9 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L51
 * pack/unpack (Array/String)
   * j and J directives for pointer width integer type.  [Feature #11215]
 
+* Thread
+  * Thread#name, Thread#name are added to handle thread names [Feature #11251]
+
 
 === Stdlib updates (outstanding ones only)
 

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

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