Naveen Neel / shedskin
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers darwin_stop_world.h Source File

darwin_stop_world.h

00001 #ifndef GC_DARWIN_STOP_WORLD_H
00002 #define GC_DARWIN_STOP_WORLD_H
00003 
00004 #if !defined(GC_DARWIN_THREADS)
00005 #error darwin_stop_world.h included without GC_DARWIN_THREADS defined
00006 #endif
00007 
00008 #include <mach/mach.h>
00009 #include <mach/thread_act.h>
00010 
00011 struct thread_stop_info {
00012     mach_port_t mach_thread;
00013 };
00014 
00015 struct GC_mach_thread {
00016   thread_act_t thread;
00017   int already_suspended;
00018 };
00019 
00020 void GC_darwin_register_mach_handler_thread(mach_port_t thread);
00021 
00022 #endif