Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 2020 01:09:46 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r368403 - stable/11/lib/libthr/thread
Message-ID:  <202012070109.0B719ka6020096@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Dec  7 01:09:45 2020
New Revision: 368403
URL: https://svnweb.freebsd.org/changeset/base/368403

Log:
  MFC r368190:
  Ensure that threading library is initialized in pthread_mutex_init().

Modified:
  stable/11/lib/libthr/thread/thr_mutex.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/lib/libthr/thread/thr_mutex.c
==============================================================================
--- stable/11/lib/libthr/thread/thr_mutex.c	Mon Dec  7 01:05:39 2020	(r368402)
+++ stable/11/lib/libthr/thread/thr_mutex.c	Mon Dec  7 01:09:45 2020	(r368403)
@@ -380,6 +380,8 @@ __pthread_mutex_init(pthread_mutex_t * __restrict mute
 	struct pthread_mutex *pmtx;
 	int ret;
 
+	_thr_check_init();
+
 	if (mutex_attr != NULL) {
 		ret = mutex_check_attr(*mutex_attr);
 		if (ret != 0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012070109.0B719ka6020096>