]> granicus.if.org Git - gc/commit
Fix GC_suspend_thread regarding potential cancellation of sem_wait
authorIvan Maidanski <ivmai@mail.ru>
Tue, 21 Jun 2016 09:12:56 +0000 (12:12 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 21 Jun 2016 09:12:56 +0000 (12:12 +0300)
commita98c23626538ce101d8903fdc5079c0a4efc2f7e
tree67678fbaee0c681d00c717b4a560b70e9bf9dd6b
parent4f6d0acc2f5f76981ae14a5427a317f60c3c1387
Fix GC_suspend_thread regarding potential cancellation of sem_wait

* pthread_stop_world.c [GC_ENABLE_SUSPEND_THREAD] (GC_suspend_thread):
Call DISABLE_CANCEL before sem_wait, call RESTORE_CANCEL after it.
pthread_stop_world.c