]> granicus.if.org Git - gc/commit
Replace SIG_THR_RESTART macro to a variable in pthread_stop_world
authorIvan Maidanski <ivmai@mail.ru>
Wed, 4 Jul 2012 04:33:33 +0000 (08:33 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 4 Jul 2012 12:36:50 +0000 (16:36 +0400)
commitde328471cd1f562c47ea6c157558ba2353ef373f
tree34ddf6eb05053d3b49a14f7a237b97d3056045be
parent97254aa856a30e273e9da713035e9fdfa7423036
Replace SIG_THR_RESTART macro to a variable in pthread_stop_world

* pthread_stop_world.c (GC_sig_thr_restart): New STATIC variable
(only unless NaCl or OpenBSD) initialized to SIG_THR_RESTART.
* pthread_stop_world.c (GC_unblock_gc_signals,
GC_suspend_handler_inner, GC_restart_handler, GC_start_world,
GC_stop_init, GC_get_thr_restart_signal): Use GC_sig_thr_restart
instead of SIG_THR_RESTART (only unless NaCl or OpenBSD); update
comment.
pthread_stop_world.c