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

ruby-changes:20250

From: kosaki <ko1@a...>
Date: Thu, 30 Jun 2011 00:47:31 +0900 (JST)
Subject: [ruby-changes:20250] kosaki:r32298 (trunk): * thread.c (rb_thread_run): change RDoc. The old example is buggy

kosaki	2011-06-30 00:47:24 +0900 (Thu, 30 Jun 2011)

  New Revision: 32298

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

  Log:
    * thread.c (rb_thread_run): change RDoc. The old example is buggy
      and may cause deadlock. The patch is suggested by Heesob Park
      <phasis@g...>. Thank you! [Bug #3606][ruby-core:31454]

  Modified files:
    trunk/ChangeLog
    trunk/thread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32297)
+++ ChangeLog	(revision 32298)
@@ -1,3 +1,9 @@
+Thu Jun 30 00:43:33 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* thread.c (rb_thread_run): change RDoc. The old example is buggy
+	  and may cause deadlock. The patch is suggested by Heesob Park
+	  <phasis@g...>. Thank you! [Bug #3606][ruby-core:31454]
+
 Thu Jun 30 00:30:15 2011  Keiju Ishitsuka  <keiju@i...>
 
 	* lib/cmath.rb: make same exception for Math. fix [Bug #3137].
Index: thread.c
===================================================================
--- thread.c	(revision 32297)
+++ thread.c	(revision 32298)
@@ -1629,7 +1629,7 @@
  *  Wakes up <i>thr</i>, making it eligible for scheduling.
  *
  *     a = Thread.new { puts "a"; Thread.stop; puts "c" }
- *     Thread.pass
+ *     sleep 0.1 while a.status!='sleep'
  *     puts "Got here"
  *     a.run
  *     a.join

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

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