diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-10 01:12:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-10 01:12:10 +0000 |
commit | f563dc875cbcd697021602a9b648b0c50bdfcddd (patch) | |
tree | 4972cfa9ce0814d3d38652e1af5d1ce195e97932 /thread.c | |
parent | ea758d28c35fac26d243f2b486bf85619ad2a8de (diff) | |
download | ruby-f563dc875cbcd697021602a9b648b0c50bdfcddd.tar.gz |
* thread.c (rb_thread_priority): rdoc fix; the initial value is
inherited from the creating thread. [ruby-core:10607]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 */ |