mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread.c (rb_threadptr_execute_interrupts_common): use defined
TIME_QUANTUM_USEC instead of a magic number. there is no meanings to use different values for checking interval of interruption and thread switching limits. cf. [Bug #6098] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
836af4e5dc
commit
fea7a74ee3
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
|||
Thu Mar 29 10:12:12 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* thread.c (rb_threadptr_execute_interrupts_common): use defined
|
||||
TIME_QUANTUM_USEC instead of a magic number. there is no meanings
|
||||
to use different values for checking interval of interruption and
|
||||
thread switching limits.
|
||||
cf. [Bug #6098]
|
||||
|
||||
Thu Mar 29 09:26:17 2012 Martin Bosslet <Martin.Bosslet@googlemail.com>
|
||||
|
||||
* test/openssl/test_x509cert.rb: Exclude test that fails when issuing
|
||||
|
|
2
thread.c
2
thread.c
|
@ -1312,7 +1312,7 @@ rb_threadptr_execute_interrupts_common(rb_thread_t *th)
|
|||
}
|
||||
|
||||
if (timer_interrupt) {
|
||||
unsigned long limits_us = 250 * 1000;
|
||||
unsigned long limits_us = TIME_QUANTUM_USEC;
|
||||
|
||||
if (th->priority > 0)
|
||||
limits_us <<= th->priority;
|
||||
|
|
Loading…
Add table
Reference in a new issue