summaryrefslogtreecommitdiff
path: root/thread_pthread.ci
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
commit3660ca5281a0dd77a01d75b7967387ae756aacde (patch)
treef90286a4bef2fe150c8070583b99ed3743478ced /thread_pthread.ci
parent2903ea4aeb7f9b73ec6d15819e811a4f0c715444 (diff)
* thread_pthread.ci (native_thread_apply_priority): set actually
applied prority. [ruby-core:11876] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.ci')
-rw-r--r--thread_pthread.ci1
1 files changed, 1 insertions, 0 deletions
diff --git a/thread_pthread.ci b/thread_pthread.ci
index d624e98487..f9498f8786 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);