Fix logic/compile errors in "event callbacks" code (Darwin, Pthreads)
authorIvan Maidanski <ivmai@mail.ru>
Sun, 17 May 2015 14:37:51 +0000 (17:37 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 17 May 2015 15:06:01 +0000 (18:06 +0300)
commit7cd987a1656fb2c9e38adc79027c1f0ef080f5df
tree65a72a926026b2ac0d5d09663806ac5faebc392e
parentff88d2d1ba88a4bf62faa521a4c19aa52f2038c4
Fix logic/compile errors in "event callbacks" code (Darwin, Pthreads)

* darwin_stop_world.c (GC_stop_world): Replace
GC_EVENT_THREAD_UNSUSPENDED to GC_EVENT_THREAD_SUSPENDED.
* pthread_stop_world.c (GC_on_collection_event): Declare.
* pthread_stop_world.c (GC_suspend_all): Change type of "thread_id"
local variable to pthread_t (or pid_t for Android) instead of int; fix
"threadid" parameter to "thread_id" in GC_on_collection_event call;
implement notification for NaCl target.
* pthread_stop_world.c (GC_start_world): Declare "thread_id" local
variable; implement notification for NaCl target.
darwin_stop_world.c
pthread_stop_world.c