Project

General

Profile

« Previous | Next » 

Revision 9d4e471c

Added by kosaki (Motohiro KOSAKI) over 14 years ago

  • vm_core.h (RUBY_VM_SET_TIMER_INTERRUPT, RUBY_VM_SET_INTERRUPT,
    RUBY_VM_SET_FINALIZER_INTERRUPT): use atomic ops for preventing
    interrupt_flag bit lost.
  • thread.c (rb_threadptr_execute_interrupts_rec): ditto.
  • vm_core.h (typedef struct rb_thread_struct): change type of
    interrupt_flag to rb_atomic_t.
  • atomic.h: move atomic ops definition from signal.c.
  • signal.c: remove atomic ops definition.
  • common.mk (gc, signal, thread, cont): add to dependency to atomic.h.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e