summaryrefslogtreecommitdiffstats
path: root/boehm-gc/include/private/pthread_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'boehm-gc/include/private/pthread_support.h')
-rw-r--r--boehm-gc/include/private/pthread_support.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/boehm-gc/include/private/pthread_support.h b/boehm-gc/include/private/pthread_support.h
index 0ef917e7ef0..d52e4da90aa 100644
--- a/boehm-gc/include/private/pthread_support.h
+++ b/boehm-gc/include/private/pthread_support.h
@@ -93,5 +93,10 @@ GC_thread GC_lookup_thread(pthread_t id);
void GC_stop_init();
+extern GC_bool GC_in_thread_creation;
+ /* We may currently be in thread creation or destruction. */
+ /* Only set to TRUE while allocation lock is held. */
+ /* When set, it is OK to run GC from unknown thread. */
+
#endif /* GC_PTHREADS && !GC_SOLARIS_THREADS.... etc */
#endif /* GC_PTHREAD_SUPPORT_H */
OpenPOWER on IntegriCloud