Date: Tue, 14 Jan 2025 17:55:14 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 9718f18471f7 - main - pthread_mutex_trylock(): init libthr if needed Message-ID: <202501141755.50EHtE5s072584@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9718f18471f700b271eb898c764e02b7fcd3766f commit 9718f18471f700b271eb898c764e02b7fcd3766f Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2025-01-12 11:28:52 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2025-01-14 17:55:07 +0000 pthread_mutex_trylock(): init libthr if needed Reported by: yuri Reviewed by: markj, olce Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D48454 --- lib/libthr/thread/thr_mutex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c index ca8971cc720a..32bdc4afe65f 100644 --- a/lib/libthr/thread/thr_mutex.c +++ b/lib/libthr/thread/thr_mutex.c @@ -619,6 +619,7 @@ __Tthr_mutex_trylock(pthread_mutex_t *mutex) uint32_t id; int ret, robust; + _thr_check_init(); ret = check_and_init_mutex(mutex, &m); if (ret != 0) return (ret);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501141755.50EHtE5s072584>