Support rthreads introduced in OpenBSD 5.2+
authorKurt Miller <kurt@intricatesoftware.com>
Sat, 8 Jun 2013 12:45:23 +0000 (16:45 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 8 Jun 2013 12:45:23 +0000 (16:45 +0400)
commit012d17d56c985d0501fffd16eb606470e0c7e0ce
tree894eebcb367411aaa50eeeefd8ab9970d49a2b5a
parentb2a030e0db5e0d53b660a8d2c6615274bb8b375b
Support rthreads introduced in OpenBSD 5.2+

* include/gc_config_macros.h (GC_OPENBSD_UTHREADS): New macro (defined
only if OpenBSD prior to 5.2 release and threads).
* include/private/gc_priv.h (SIG_SUSPEND): Define for OpenBSD (unless
GC_OPENBSD_UTHREADS).
* include/private/pthread_stop_world.h (thread_stop_info): Test
GC_OPENBSD_UTHREADS macro instead of GC_OPENBSD_THREADS.
* misc.c (GC_set_suspend_signal, GC_set_thr_restart_signal,
GC_get_suspend_signal, GC_get_thr_restart_signal): Likewise.
* os_dep.c (GC_dirty_init): Likewise.
* pthread_stop_world.c: Likewise.
* tests/initsecondarythread.c (main): Likewise.
include/gc_config_macros.h
include/private/gc_priv.h
include/private/pthread_stop_world.h
misc.c
os_dep.c
pthread_stop_world.c
tests/initsecondarythread.c