]> granicus.if.org Git - gc/commit
Implement thread suspend/resume API (Linux threads only)
authorKeith Seitz <keiths@redhat.com>
Wed, 21 Jun 2006 20:56:37 +0000 (20:56 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 19 Nov 2015 22:34:09 +0000 (01:34 +0300)
commit62097c3ea1261ad5ffefb8996b2c9bd09baeeab9
tree20fd36a787e3363976f1210f511c835733709b92
parentc62a70c6c449361ee3dbb87ffe54d45ecab2a207
Implement thread suspend/resume API (Linux threads only)
(Cherry-picked commit 42fe54a from 'gcc_boehmgc' branch.)

* pthread_stop_world.c (GC_suspend_handler): Redirect to suspension
routine if signal is received and thread is flagged SUSPENDED_EXT.
* pthread_stop_world.c (GC_brief_async_signal_safe_sleep,
suspend_self_inner, suspend_self, GC_suspend_thread,
GC_resume_thread): New function.
* include/gc.h (GC_suspend_thread, GC_resume_thread): Declare.
* include/private/pthread_support.h (SUSPENDED_EXT): Update comment.

Conflicts:
* ChangeLog
* include/gc.h
* include/private/pthread_support.h
* pthread_stop_world.c
include/gc.h
include/private/pthread_support.h
pthread_stop_world.c