Fix thread id leaks in subthread_create and threadkey_test
authorIvan Maidanski <ivmai@mail.ru>
Tue, 19 Sep 2017 22:23:43 +0000 (01:23 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 19 Sep 2017 22:23:43 +0000 (01:23 +0300)
commit93a15674439f3ca98e44444c896f30b422225383
treeab27ff075e563c8fde0cb216da54a5e6f03978f1
parent005388712be1c2c341769b41ffe590711609e951
Fix thread id leaks in subthread_create and threadkey_test

* tests/subthread_create.c [GC_PTHREADS] (entry): Call pthread_detach
for the created thread.
* tests/threadkey_test.c (main): Likewise.
* tests/test.c [GC_PTHREADS && CPPCHECK] (main): Remove
UNTESTED(GC_pthread_detach).
* tests/threadkey_test.c (on_thread_exit_inner): New local variable
attr; call pthread_attr_init and pthread_attr_setdetachstate;
pass attr to GC_pthread_create; call pthread_attr_destroy.
tests/subthread_create.c
tests/test.c
tests/threadkey_test.c