svn commit: r368401 - stable/12/lib/libthr/thread
Konstantin Belousov
kib at FreeBSD.org
Mon Dec 7 01:02:21 UTC 2020
Author: kib
Date: Mon Dec 7 01:02:20 2020
New Revision: 368401
URL: https://svnweb.freebsd.org/changeset/base/368401
Log:
MFC r368190:
Ensure that threading library is initialized in pthread_mutex_init().
Modified:
stable/12/lib/libthr/thread/thr_mutex.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/lib/libthr/thread/thr_mutex.c
==============================================================================
--- stable/12/lib/libthr/thread/thr_mutex.c Sun Dec 6 22:45:50 2020 (r368400)
+++ stable/12/lib/libthr/thread/thr_mutex.c Mon Dec 7 01:02:20 2020 (r368401)
@@ -384,6 +384,8 @@ __Tthr_mutex_init(pthread_mutex_t * __restrict mutex,
struct pthread_mutex *pmtx;
int ret;
+ _thr_check_init();
+
if (mutex_attr != NULL) {
ret = mutex_check_attr(*mutex_attr);
if (ret != 0)
More information about the svn-src-all
mailing list