summaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-10 01:12:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-10 01:12:10 +0000
commitb9e8643735fa287cc4acb04b4bedfd3468ae7a7c (patch)
tree4972cfa9ce0814d3d38652e1af5d1ce195e97932 /thread.c
parent4d0e6462c98f931d9d2dc7ff4ad1c30f24025ce2 (diff)
downloadruby-b9e8643735fa287cc4acb04b4bedfd3468ae7a7c.tar.gz
ruby-b9e8643735fa287cc4acb04b4bedfd3468ae7a7c.tar.xz
ruby-b9e8643735fa287cc4acb04b4bedfd3468ae7a7c.zip
* thread.c (rb_thread_priority): rdoc fix; the initial value is
inherited from the creating thread. [ruby-core:10607] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/thread.c b/thread.c
index 8e76b83b9..230439b72 100644
--- a/thread.c
+++ b/thread.c
@@ -1508,10 +1508,12 @@ rb_thread_keys(VALUE self)
/*
* call-seq:
* thr.priority => integer
- *
- * Returns the priority of <i>thr</i>. Default is zero; higher-priority threads
- * will run before lower-priority threads.
- *
+ *
+ * Returns the priority of <i>thr</i>. Default is inherited from the
+ * current thread which creating the new thread, or zero for the
+ * initial main thread; higher-priority threads will run before
+ * lower-priority threads.
+ *
* Thread.current.priority #=> 0
*/
OSZAR »