X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=libgc%2Fwin32_threads.c;h=5533b8f2e252bf750dba873d24aeecf78b79facd;hb=919824ddd436a6b13f994c77e9910045fa729d16;hp=9662eb186ceb1f5f69184d47070e08670f309a72;hpb=95149da03ea22c4e6f7e9feda77ea2808fbf6586;p=mono.git diff --git a/libgc/win32_threads.c b/libgc/win32_threads.c index 9662eb186ce..5533b8f2e25 100644 --- a/libgc/win32_threads.c +++ b/libgc/win32_threads.c @@ -85,6 +85,26 @@ int GC_thread_is_registered (void) #endif } +void GC_allow_register_threads (void) +{ + /* No-op for GC pre-v7. */ +} + +int GC_register_my_thread (struct GC_stack_base *sb) +{ +# if defined(GC_DLL) || defined(GC_INSIDE_DLL) + /* Registered by DllMain. */ + return GC_DUPLICATE; +# else + /* TODO: Implement. */ + return GC_UNIMPLEMENTED; +# endif +} + +void GC_register_altstack (void *stack, int stack_size, void *altstack, int altstack_size) +{ +} + /* * This may be called from DllMain, and hence operates under unusual * constraints. @@ -164,7 +184,7 @@ static GC_thread GC_new_thread(void) { #ifdef __GNUC__ __inline__ #endif -LONG GC_get_max_thread_index() +static LONG GC_get_max_thread_index() { LONG my_max = GC_max_thread_index;