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