]> granicus.if.org Git - gc/commit
Fix pthread_join to avoid thread removal on failure (Cygwin, winpthreads)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 26 Sep 2017 08:29:54 +0000 (11:29 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 28 Sep 2017 08:50:47 +0000 (11:50 +0300)
commit29269f18cda4576866de7a08912d8c7966e48cb9
tree32b5b8ff668220d1a24a51d4016a2cd11650f42e
parentcfa8bb9255353d309b8865e2fa3a99e3a20421fc
Fix pthread_join to avoid thread removal on failure (Cygwin, winpthreads)

* win32_threads.c [GC_WIN32_PTHREADS] (GC_pthread_join): Do not call
GC_lookup_pthread if pthread_join failed.
* win32_threads.c [GC_PTHREADS] (GC_pthread_join): Do not call
GC_delete_gc_thread_no_free, GC_INTERNAL_FREE if pthread_join failed.
* win32_threads.c [GC_PTHREADS && DEBUG_THREADS] (GC_pthread_join):
Log whether pthread_join succeeded or failed.
win32_threads.c