summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-11-18 10:39:06 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:52 +0200
commitedadd4c4c3ca050469b2e81109ee1ae9afd0e125 (patch)
tree7856949feaf5b5f89240522d0c9e3cb1c2293c89 /misc.c
parentdd6167b84a90986a1e71d916a4f45a2fca6b8563 (diff)
2009-11-18 Ivan Maidanski <ivmai@mail.ru> (really mostly Zoltan Varga)
* include/gc.h (GC_get_suspend_signal): New function declaration. * misc.c (GC_get_suspend_signal): New API function (only if THREADS).
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 96dc754..5497886 100644
--- a/misc.c
+++ b/misc.c
@@ -455,6 +455,17 @@ GC_API size_t GC_CALL GC_get_total_bytes(void)
return value;
}
+#ifdef THREADS
+ GC_API int GC_CALL GC_get_suspend_signal(void)
+ {
+# ifdef SIG_SUSPEND
+ return SIG_SUSPEND;
+# else
+ return -1;
+# endif
+ }
+#endif /* THREADS */
+
GC_INNER GC_bool GC_is_initialized = FALSE;
#if (defined(MSWIN32) || defined(MSWINCE)) && defined(THREADS)