]> granicus.if.org Git - gc/commit
Workaround Haiku pthread_join failure in subthreadcreate_test
authorIvan Maidanski <ivmai@mail.ru>
Tue, 6 Mar 2018 22:13:15 +0000 (01:13 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 17 Apr 2018 20:06:04 +0000 (23:06 +0300)
commit1d9c1e437ba41bcfcb94489b4d12bbf8aaa9d056
treee9796a564818a5acc48c76917ce8eb141e6a6d63
parent1761adf6c9e78c69acb7851dde558dd0cc3b2be0
Workaround Haiku pthread_join failure in subthreadcreate_test

Issue #97 (bdwgc).

The underlying pthread_join fails because of some bug in Haiku OS
(as of hrev51798) when many threads are created in parallel.

* tests/subthread_create.c [__HAIKU__]: Include errno.h.
* tests/subthread_create.c [__HAIKU__] (main): If pthread_join returned
value is ESRCH then just end the test normally (i.e. ignore the failure
of pthread_join); add comment and TODO item.
tests/subthread_create.c