/vendor/gc/include/private/darwin_stop_world.h

http://github.com/feyeleanor/RubyGoLightly · C++ Header · 22 lines · 16 code · 6 blank · 0 comment · 0 complexity · deb33a288bb6bee23ac46c1e0717708e MD5 · raw file

  1. #ifndef GC_DARWIN_STOP_WORLD_H
  2. #define GC_DARWIN_STOP_WORLD_H
  3. #if !defined(GC_DARWIN_THREADS)
  4. #error darwin_stop_world.h included without GC_DARWIN_THREADS defined
  5. #endif
  6. #include <mach/mach.h>
  7. #include <mach/thread_act.h>
  8. struct thread_stop_info {
  9. mach_port_t mach_thread;
  10. };
  11. struct GC_mach_thread {
  12. thread_act_t thread;
  13. int already_suspended;
  14. };
  15. void GC_darwin_register_mach_handler_thread(mach_port_t thread);
  16. #endif