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

ruby-changes:20252

From: kosaki <ko1@a...>
Date: Thu, 30 Jun 2011 00:55:50 +0900 (JST)
Subject: [ruby-changes:20252] kosaki:r32300 (trunk): * thread.c (rb_thread_stop): change RDoc sample code. The old

kosaki	2011-06-30 00:55:44 +0900 (Thu, 30 Jun 2011)

  New Revision: 32300

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

  Log:
    * thread.c (rb_thread_stop): change RDoc sample code. 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 32299)
+++ ChangeLog	(revision 32300)
@@ -1,3 +1,10 @@
+Thu Jun 30 00:54:33 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* thread.c (rb_thread_stop): change RDoc sample code. 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:49:53 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* thread.c (rb_thread_wakeup): change RDoc sample code. The old
Index: thread.c
===================================================================
--- thread.c	(revision 32299)
+++ thread.c	(revision 32300)
@@ -1660,7 +1660,7 @@
  *  and schedules execution of another thread.
  *
  *     a = Thread.new { print "a"; Thread.stop; print "c" }
- *     Thread.pass
+ *     sleep 0.1 while a.status!='sleep'
  *     print "b"
  *     a.run
  *     a.join

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

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