]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Ensure that threading library is initialized in pthread_mutex_init().
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 30 Nov 2020 17:00:36 +0000 (17:00 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 30 Nov 2020 17:00:36 +0000 (17:00 +0000)
commitec5fed758cbe1552c4716f2ac615d09a68905bca
tree95ecef6d9c3564962be020bf42162f08605685e2
parent991f23ef20d1cf3e55aea43cef576287a66d969e
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