]> granicus.if.org Git - gc/commit
Add thread suspend/resume signals public setters (POSIX threads)
authorJean-Claude Beaudoin <jean.claude.beaudoin@gmail.com>
Wed, 4 Jul 2012 16:53:57 +0000 (20:53 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 4 Jul 2012 16:53:57 +0000 (20:53 +0400)
commitee0e1619e50b937de34582acf3b45bf269468fdf
tree025eef254f8768bf30c803c748e862782776425a
parent06d9d8cdff83489eefacdb518d1851408f7f4081
Add thread suspend/resume signals public setters (POSIX threads)

* include/gc.h (GC_set_suspend_signal, GC_set_thr_restart_signal):
Add public function declaration (to specify non-default signals to
suspend/resume threads).
* include/gc.h (GC_get_suspend_signal, GC_get_thr_restart_signal):
Update comment.
* misc.c (GC_set_suspend_signal, GC_set_thr_restart_signal): Add
public no-op function (only for Darwin, OpenBSD, Win32 and NaCl).
* pthread_stop_world.c (GC_set_suspend_signal,
GC_set_thr_restart_signal): Add public setter to alter the default
signals used to suspend and resume threads (only if not OpenBSD or
NaCl); has no effect if GC is initialized.
include/gc.h
misc.c
pthread_stop_world.c