mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
2903ea4aeb
commit
3660ca5281
2 changed files with 6 additions and 0 deletions
|
@ -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>
|
Fri Aug 10 05:12:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* thread.c (thread_start_func_2): let abort_on_exception work.
|
* thread.c (thread_start_func_2): let abort_on_exception work.
|
||||||
|
|
|
@ -285,6 +285,7 @@ native_thread_apply_priority(rb_thread_t *th)
|
||||||
else if (max > priority) {
|
else if (max > priority) {
|
||||||
priority = min;
|
priority = min;
|
||||||
}
|
}
|
||||||
|
th->priority = 0 - priority;
|
||||||
|
|
||||||
sp.sched_priority = priority;
|
sp.sched_priority = priority;
|
||||||
pthread_setschedparam(th->thread_id, policy, &sp);
|
pthread_setschedparam(th->thread_id, policy, &sp);
|
||||||
|
|
Loading…
Add table
Reference in a new issue