From b9e8643735fa287cc4acb04b4bedfd3468ae7a7c Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 10 May 2007 01:12:10 +0000 Subject: * 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 --- thread.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'thread.c') 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 thr. Default is zero; higher-priority threads - * will run before lower-priority threads. - * + * + * Returns the priority of thr. 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 */ -- cgit