Refactoring of android_thread_kill/pthread_kill calls
authorIvan Maidanski <ivmai@mail.ru>
Mon, 30 May 2016 19:46:59 +0000 (22:46 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 30 May 2016 19:46:59 +0000 (22:46 +0300)
commit5327b21e518fd62254e33b135eb5e1d217f9fa77
treebd924ac5b618903cf77b9bf9d54aed54755b9e18
parent8ff3262b23ff70e7ce53bccb90e20cfd4d39e171
Refactoring of android_thread_kill/pthread_kill calls

* pthread_stop_world.c (android_thread_kill) [USE_TKILL_ON_ANDROID]:
Move definition upper (to be before its first use); remove forward
declaration.
* pthread_stop_world.c (THREAD_SYSTEM_ID, RAISE_SIGNAL): New macro.
* pthread_stop_world.c (GC_suspend_thread): Remove "result" local
variable
* pthread_stop_world.c (GC_suspend_thread, GC_suspend_all,
GC_start_world): Use RAISE_SIGNAL() instead of pthread_kill and
android_thread_kill.
* pthread_stop_world.c (GC_suspend_all, GC_start_world): Remove
"thread_id" local variable; use THREAD_SYSTEM_ID instead of thread_id.
pthread_stop_world.c