From 73909f8e6d8fcd2470d886b054338b8496ece76a Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 10 May 2007 01:13:11 +0000 Subject: * eval.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/branches/ruby_1_8@12267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ eval.c | 14 ++++++++------ version.h | 6 +++--- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 87d45c5357..14f1ff15ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu May 10 10:14:14 2007 Nobuyoshi Nakada + + * eval.c (rb_thread_priority): rdoc fix; the initial value is + inherited from the creating thread. [ruby-core:10607] + Wed May 9 12:28:57 2007 Nobuyoshi Nakada * bignum.c (Init_Bignum), numeric.c (Init_Numeric): added fdiv as diff --git a/eval.c b/eval.c index 06742da54c..3aa5a3957a 100644 --- a/eval.c +++ b/eval.c @@ -11471,10 +11471,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 */ @@ -11489,10 +11491,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 } diff --git a/version.h b/version.h index 980f69ff7b..58bd8d9f80 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.8.6" -#define RUBY_RELEASE_DATE "2007-05-09" +#define RUBY_RELEASE_DATE "2007-05-10" #define RUBY_VERSION_CODE 186 -#define RUBY_RELEASE_CODE 20070509 +#define RUBY_RELEASE_CODE 20070510 #define RUBY_PATCHLEVEL 5000 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 6 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 5 -#define RUBY_RELEASE_DAY 9 +#define RUBY_RELEASE_DAY 10 RUBY_EXTERN const char ruby_version[]; RUBY_EXTERN const char ruby_release_date[]; -- cgit v1.2.3