X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=libgc%2Finclude%2Fgc.h;h=d77de303e0d5e69193214b20d8dabcba1ad847d1;hb=6bd146188369de40ec6a84fdee75737dd1620f92;hp=ba73ea09a556dbd1305564c521ee0bfddd049cc9;hpb=30c28c41d7859b7de6ecd7afb652468517048d12;p=mono.git diff --git a/libgc/include/gc.h b/libgc/include/gc.h index ba73ea09a55..d77de303e0d 100644 --- a/libgc/include/gc.h +++ b/libgc/include/gc.h @@ -98,7 +98,11 @@ typedef enum { GC_EVENT_MARK_END, GC_EVENT_RECLAIM_START, GC_EVENT_RECLAIM_END, - GC_EVENT_END + GC_EVENT_END, + GC_EVENT_PRE_STOP_WORLD, + GC_EVENT_POST_STOP_WORLD, + GC_EVENT_PRE_START_WORLD, + GC_EVENT_POST_START_WORLD } GCEventType; GC_API void (*GC_notify_event) GC_PROTO((GCEventType event_type)); @@ -420,6 +424,10 @@ GC_API size_t GC_get_bytes_since_gc GC_PROTO((void)); /* Never decreases, except due to wrapping. */ GC_API size_t GC_get_total_bytes GC_PROTO((void)); +/* Return the signal used by the gc to suspend threads on posix platforms. */ +/* Return -1 otherwise. */ +int GC_get_suspend_signal GC_PROTO((void)); + /* Disable garbage collection. Even GC_gcollect calls will be */ /* ineffective. */ GC_API void GC_disable GC_PROTO((void)); @@ -918,6 +926,8 @@ extern void GC_thr_init(void); /* Needed for Solaris/X86 */ #if defined(GC_WIN32_THREADS) && !defined(__CYGWIN32__) && !defined(__CYGWIN__) # include + BOOL WINAPI GC_DllMain(HINSTANCE inst, ULONG reason, LPVOID reserved); + /* * All threads must be created using GC_CreateThread, so that they will be * recorded in the thread table. For backwards compatibility, this is not