diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/private/gc_priv.h | 3 | ||||
-rw-r--r-- | include/private/pthread_support.h | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index 75266d2c..ec0cda5c 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -2176,6 +2176,9 @@ void GC_register_data_segments(void); /* Both are invoked from GC_init only. */ GC_INNER void GC_thr_init(void); GC_INNER void GC_init_parallel(void); +# ifndef DONT_USE_ATEXIT + GC_INNER GC_bool GC_is_main_thread(void); +# endif #else GC_INNER GC_bool GC_is_static_root(void *p); /* Is the address p in one of the registered static */ diff --git a/include/private/pthread_support.h b/include/private/pthread_support.h index 091e153e..fa0d0789 100644 --- a/include/private/pthread_support.h +++ b/include/private/pthread_support.h @@ -341,10 +341,11 @@ GC_EXTERN GC_thread GC_threads[THREAD_TABLE_SZ]; GC_INNER void GC_setup_atfork(void); # endif +# if !defined(DONT_USE_ATEXIT) || !defined(GC_NO_THREADS_DISCOVERY) + GC_EXTERN thread_id_t GC_main_thread_id; +# endif + # ifndef GC_NO_THREADS_DISCOVERY -# ifdef GC_ASSERTIONS - GC_EXTERN thread_id_t GC_main_thread_id; -# endif GC_INNER GC_thread GC_win32_dll_lookup_thread(thread_id_t); # endif |