]> granicus.if.org Git - gc/commit
Check thread is alive on each SuspendThread loop iteration (Win32)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 4 Oct 2019 17:42:54 +0000 (20:42 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 4 Oct 2019 17:42:54 +0000 (20:42 +0300)
commit872faf2abb6ca65a7f8c0c305ae5bb1b17ec1bd6
treee8397946cfd4353e8aa5f08de2f3afac77e645cb
parent47873be17352b194bfd42731531fcf6ee68e64dc
Check thread is alive on each SuspendThread loop iteration (Win32)
(fix of commit 449eda034)

* win32_threads.c [!GC_NO_THREADS_DISCOVERY]
(GC_delete_gc_thread_no_free): Reset suspended if GC_win32_dll_threads.
* win32_threads.c [!MSWINCE] (GC_suspend): Move comment near exitCode
declaration to be near GetExitCodeThread() call; adjust comment.
* win32_threads.c [!MSWINCE && RETRY_GET_THREAD_CONTEXT] (GC_suspend):
Call GetExitCodeThread() on each iteration of the suspend loop; refine
ABORT message on ResumeThread failure.
win32_threads.c