* include/gc.h (GC_get_thr_restart_signal): Refine comment.
* pthread_stop_world.c (GC_get_thr_restart_signal): Return -1 for
OpenBSD and NaCl.
GC_API int GC_CALL GC_get_suspend_signal(void);
/* Return the signal number (constant) used by the garbage collector */
- /* to restart threads on POSIX systems. Return -1 otherwise. */
+ /* to restart (resume) threads on POSIX systems. Return -1 otherwise. */
GC_API int GC_CALL GC_get_thr_restart_signal(void);
/* Explicitly enable GC_register_my_thread() invocation. */
GC_API int GC_CALL GC_get_thr_restart_signal(void)
{
+# if !defined(GC_OPENBSD_THREADS) && !defined(NACL)
return SIG_THR_RESTART;
+# else
+ return -1;
+# endif
}
#else /* defined(GC_PTHREADS) && !defined(GC_WIN32_THREADS) && \