]> 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>
Tue, 26 Sep 2017 08:29:54 +0000 (11:29 +0300)
commit11329f77d82f1a0e32b6c16128854302ca0dd417
tree3fe259363481a541e51b636ff9a7ddba2a9654e2
parent2f6ad63a58d638920c60b5d7fe7d4a6a63066398
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