diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-29 16:34:51 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-29 16:34:51 +0000 |
commit | ed0876f66d98c3c2a6247a626d1889eba5d7cb2f (patch) | |
tree | cb22c815027d25253249ed21d21bd894ffaa3c76 /thread.c | |
parent | 3a9117011fdbcfd75e84cf5c0006bf357a20f959 (diff) | |
download | ruby-ed0876f66d98c3c2a6247a626d1889eba5d7cb2f.tar.gz |
* 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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -1245,20 +1245,8 @@ ruby_thread_has_gvl_p(void) * 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 |