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

ruby-changes:37441

From: naruse <ko1@a...>
Date: Fri, 6 Feb 2015 12:05:29 +0900 (JST)
Subject: [ruby-changes:37441] naruse:r49522 (ruby_2_2): merge revision(s) 49428: [Backport #10694]

naruse	2015-02-06 12:05:23 +0900 (Fri, 06 Feb 2015)

  New Revision: 49522

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

  Log:
    merge revision(s) 49428: [Backport #10694]
    
    * thread.c: Improve documentation for Thread#value
      [Bug #10694][ruby-core:67324][ci skip]

  Modified directories:
    branches/ruby_2_2/
  Modified files:
    branches/ruby_2_2/ChangeLog
    branches/ruby_2_2/thread.c
    branches/ruby_2_2/version.h
Index: ruby_2_2/ChangeLog
===================================================================
--- ruby_2_2/ChangeLog	(revision 49521)
+++ ruby_2_2/ChangeLog	(revision 49522)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/ChangeLog#L1
+Fri Feb  6 12:05:13 2015  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* thread.c: Improve documentation for Thread#value
+	  [Bug #10694][ruby-core:67324][ci skip]
+
 Fri Feb  6 12:02:05 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/fiddle/win32/libffi.mk.tmpl: assemble without directory prefix.
Index: ruby_2_2/thread.c
===================================================================
--- ruby_2_2/thread.c	(revision 49521)
+++ ruby_2_2/thread.c	(revision 49522)
@@ -959,10 +959,14 @@ thread_join_m(int argc, VALUE *argv, VAL https://github.com/ruby/ruby/blob/trunk/ruby_2_2/thread.c#L959
  *  call-seq:
  *     thr.value   -> obj
  *
- *  Waits for +thr+ to complete, using #join, and returns its value.
+ *  Waits for +thr+ to complete, using #join, and returns its value or raises
+ *  the exception which terminated the thread.
  *
  *     a = Thread.new { 2 + 2 }
  *     a.value   #=> 4
+ *
+ *     b = Thread.new { raise 'something went wrong' }
+ *     b.value   #=> RuntimeError: something went wrong
  */
 
 static VALUE
Index: ruby_2_2/version.h
===================================================================
--- ruby_2_2/version.h	(revision 49521)
+++ ruby_2_2/version.h	(revision 49522)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/version.h#L1
 #define RUBY_VERSION "2.2.0"
 #define RUBY_RELEASE_DATE "2015-02-06"
-#define RUBY_PATCHLEVEL 40
+#define RUBY_PATCHLEVEL 41
 
 #define RUBY_RELEASE_YEAR 2015
 #define RUBY_RELEASE_MONTH 2

Property changes on: ruby_2_2
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r49428


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

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