summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-29 01:15:37 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-29 01:15:37 +0000
commitfea7a74ee3b0b1920a956ca3cc7faaf60b216c35 (patch)
tree359fd4f88394e97562db7214e611646797eea6d7 /thread.c
parent836af4e5dc7ef3293a68e07fea47385e2e5942ed (diff)
* 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
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 55ba49d62b..1fcdf824f9 100644
--- a/thread.c
+++ b/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;