summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-26 09:22:01 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-26 09:22:01 +0000
commit7087153156a32373960b8edbe938f3095be55389 (patch)
treee6bad8b30824b7c51e2045abf8e74470c63aefd9 /vm_core.h
parent2e87867a8f07e93141156933e8d648c57c0b57d4 (diff)
split trap interrupt and async interrupt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 333e845607..b785f95ad9 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -860,7 +860,8 @@ GET_THREAD(void)
#define RUBY_VM_SET_TIMER_INTERRUPT(th) ATOMIC_OR((th)->interrupt_flag, 0x01)
#define RUBY_VM_SET_INTERRUPT(th) ATOMIC_OR((th)->interrupt_flag, 0x02)
#define RUBY_VM_SET_FINALIZER_INTERRUPT(th) ATOMIC_OR((th)->interrupt_flag, 0x04)
-#define RUBY_VM_INTERRUPTED(th) ((th)->interrupt_flag & 0x02)
+#define RUBY_VM_SET_TRAP_INTERRUPT(th) ATOMIC_OR((th)->interrupt_flag, 0x08)
+#define RUBY_VM_INTERRUPTED(th) ((th)->interrupt_flag & 0x0A)
int rb_signal_buff_size(void);
void rb_signal_exec(rb_thread_t *th, int sig);