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)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to