OSDN Git Service

* pthread_stop_world.c (GC_suspend_handler): Redirect to suspension
[pf3gnuchains/gcc-fork.git] / boehm-gc / include / gc.h
index 3507db7..e6ab2c6 100644 (file)
@@ -1040,4 +1040,14 @@ GC_API void GC_register_has_static_roots_callback
     }  /* end of extern "C" */
 #endif
 
+/* External thread suspension support. These functions do not implement
+ * suspension counts or any other higher-level abstraction. Threads which
+ * have been suspended numerous times will resume with the very first call
+ * to GC_resume_thread.
+ */
+#if defined(GC_PTHREADS) && !defined(GC_SOLARIS_THREADS) \
+  && !defined(GC_WIN32_THREADS) && !defined(GC_DARWIN_THREADS)
+GC_API void GC_suspend_thread GC_PROTO((pthread_t));
+GC_API void GC_resume_thread GC_PROTO((pthread_t));
+#endif
 #endif /* _GC_H */