]> granicus.if.org Git - gc/commit
2011-05-17 Ivan Maidanski <ivmai@mail.ru>
authorivmai <ivmai>
Tue, 17 May 2011 08:59:42 +0000 (08:59 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:59 +0000 (21:06 +0400)
commit77ffb1ff58523f4ee461e1d1ae1a1ae1ddd9b601
treecd94370e23c830020d44e5802f4bc3b0ec74cfd1
parentd6f2674f15e848495b2ed9db1689e425cd2e1115
2011-05-17  Ivan Maidanski  <ivmai@mail.ru>

* pthread_support.c (pthread_join): Add assertion (check thread is
finished).
* pthread_support.c (GC_register_my_thread): Don't detach the
thread if invoked from the thread destructor.
* win32_threads.c (GC_register_my_thread): Ditto.
* win32_threads.c (GC_unregister_my_thread): Don't delete the
thread (just set FINISHED) if the thread is not detached (only if
GC_PTHREADS); add assertion (check the thread is not finished).
* tests/threadkey_test.c (main): Join some created threads.
ChangeLog
pthread_support.c
tests/threadkey_test.c
win32_threads.c