summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/thread.c b/thread.c
index 081dce4a02..0284ed6369 100644
--- a/thread.c
+++ b/thread.c
@@ -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