diff options
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -634,6 +634,10 @@ extern rb_vm_t *ruby_current_vm; #error "unsupported thread model" #endif +#define RUBY_VM_SET_INTERRUPT(th) ((th)->interrupt_flag |= 0x02) +#define RUBY_VM_SET_TIMER_INTERRUPT(th) ((th)->interrupt_flag |= 0x01) +#define RUBY_VM_INTERRUPTED(th) ((th)->interrupt_flag & 0x02) + void rb_thread_execute_interrupts(rb_thread_t *); #define RUBY_VM_CHECK_INTS_TH(th) do { \ |