ruby-changes:20253
From: kosaki <ko1@a...>
Date: Thu, 30 Jun 2011 01:36:17 +0900 (JST)
Subject: [ruby-changes:20253] kosaki:r32301 (trunk): * thread.c (thread_s_pass): change RDoc description and remove
kosaki 2011-06-30 01:34:51 +0900 (Thu, 30 Jun 2011) New Revision: 32301 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32301 Log: * thread.c (thread_s_pass): change RDoc description and remove a sample code. The actual implementaion never behave as explained by an example. It's a documentation bug. Modified files: trunk/ChangeLog trunk/thread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 32300) +++ ChangeLog (revision 32301) @@ -1,3 +1,9 @@ +Thu Jun 30 01:31:33 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * thread.c (thread_s_pass): change RDoc description and remove + a sample code. The actual implementaion never behave as explained by + an example. It's a documentation bug. + Thu Jun 30 00:54:33 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * thread.c (rb_thread_stop): change RDoc sample code. The old Index: thread.c =================================================================== --- thread.c (revision 32300) +++ thread.c (revision 32301) @@ -1245,20 +1245,8 @@ * call-seq: * Thread.pass -> nil * - * Invokes the thread scheduler to pass execution to another thread. - * - * a = Thread.new { print "a"; Thread.pass; - * print "b"; Thread.pass; - * print "c" } - * b = Thread.new { print "x"; Thread.pass; - * print "y"; Thread.pass; - * print "z" } - * a.join - * b.join - * - * <em>produces:</em> - * - * axbycz + * Take the thrad scheduler a hint to pass execution to another thread. + * A running thread may or may not switch. It depend on OS and processor. */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/