From ed1c660b70a4be74d16ac1f4567ff642d03b7684 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Tue, 22 May 2007 20:14:51 +0000 Subject: merge -c 12267 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@12330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 4815717bee..1bf06b7eef 100644 --- a/eval.c +++ b/eval.c @@ -11468,10 +11468,12 @@ rb_thread_sleep_forever() /* * 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 */ @@ -11486,10 +11488,10 @@ rb_thread_priority(thread) /* * call-seq: * thr.priority= integer => thr - * + * * Sets the priority of thr to integer. Higher-priority threads * will run before lower-priority threads. - * + * * count1 = count2 = 0 * a = Thread.new do * loop { count1 += 1 } -- cgit v1.2.3