summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-28 09:59:44 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-28 09:59:44 +0000
commit6978b8ca6767cf79840354f7e0472d9d635a95b9 (patch)
treef8e41f14c25625e0c92131ef156a499c1216b462 /vm_core.h
parent62d71852df7947239930f04f4f756f40881cfdaa (diff)
* vm_core.h (rb_thread_t#yielding): add a field.
* thread.c (rb_thread_schedule_limits): set th#yielding while release GVL to yield CPU time. * thread.c (timer_thread_function): skip timer interrupt when th#yielding is true. This patch fixes r35480. * thread.c (rb_threadptr_execute_interrupts_common): revert a patch of r35480. * ChangeLog: add an extended memo of r35480. http://bugs.ruby-lang.org/projects/ruby-trunk/wiki/R35480_ExtendedMemo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index a835e23005..5a9e6bc646 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -407,6 +407,7 @@ typedef struct rb_thread_struct {
/* passing state */
int state;
+ int yielding;
int waiting_fd;