]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Ensure that threading library is initialized in pthread_mutex_init().
authorkib <kib@FreeBSD.org>
Mon, 30 Nov 2020 17:00:36 +0000 (17:00 +0000)
committerkib <kib@FreeBSD.org>
Mon, 30 Nov 2020 17:00:36 +0000 (17:00 +0000)
commit036e16dadfd2f40824d2e4d3b44173b007a532bc
tree95ecef6d9c3564962be020bf42162f08605685e2
parentccde7baa24a1dc6a73557703b56a720b39265652
Ensure that threading library is initialized in pthread_mutex_init().

We need at least thr_malloc ready.  The situation is possible e.g. in case
of libthr being listed in DT_NEEDED before some of its consumers.

Reported and tested by: lev
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
lib/libthr/thread/thr_mutex.c