Back to index

plt-scheme  4.2.1
darwin_stop_world.h
Go to the documentation of this file.
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