Skip to content

Commit

Permalink
* vm_core.h (enum ruby_vm_interrupted_bits): named.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/mvm@26655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Feb 12, 2010
1 parent 59384c1 commit 2bd099b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vm_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -733,11 +733,12 @@ int ruby_thread_set_native(rb_thread_t *th);
#error "unsupported thread model"
#endif

enum {
enum ruby_vm_interrupted_bits {
ruby_vm_timer_bit = 0x01,
ruby_vm_interrupt_bit = 0x02,
ruby_vm_finalizer_bit = 0x04,
ruby_vm_signal_bit = 0x08
ruby_vm_signal_bit = 0x08,
ruby_vm_all_interrupted_bits = 0x0f
};

#define RUBY_VM_SET_INTERRUPT(th) ((th)->interrupt_flag |= ruby_vm_interrupt_bit)
Expand Down

0 comments on commit 2bd099b

Please sign in to comment.