git: 9718f18471f7 - main - pthread_mutex_trylock(): init libthr if needed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Jan 2025 17:55:14 UTC
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);