summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-10 00:47:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-10 00:47:33 +0000
commit7e693135877069595b6ce706e638e4b25de76da5 (patch)
treef90286a4bef2fe150c8070583b99ed3743478ced
parent144080e0d807f53b6ed0370122ba91f47fe15c89 (diff)
downloadruby-7e693135877069595b6ce706e638e4b25de76da5.tar.gz
ruby-7e693135877069595b6ce706e638e4b25de76da5.tar.xz
ruby-7e693135877069595b6ce706e638e4b25de76da5.zip
* thread_pthread.ci (native_thread_apply_priority): set actually
applied prority. [ruby-core:11876] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--thread_pthread.ci1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6fae3b13e..ae0967902 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Aug 10 09:47:32 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_pthread.ci (native_thread_apply_priority): set actually
+ applied prority. [ruby-core:11876]
+
Fri Aug 10 05:12:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread.c (thread_start_func_2): let abort_on_exception work.
diff --git a/thread_pthread.ci b/thread_pthread.ci
index d624e9848..f9498f878 100644
--- a/thread_pthread.ci
+++ b/thread_pthread.ci
@@ -285,6 +285,7 @@ native_thread_apply_priority(rb_thread_t *th)
else if (max > priority) {
priority = min;
}
+ th->priority = 0 - priority;
sp.sched_priority = priority;
pthread_setschedparam(th->thread_id, policy, &sp);