Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-freebsd/freebsd-lib/files: freebsd-lib-9.0-trylock-adaptive.patch
Date: Fri, 25 May 2012 12:24:38
Message-Id: 20120525122404.85ACC2004C@flycatcher.gentoo.org
1 aballier 12/05/25 12:24:04
2
3 Added: freebsd-lib-9.0-trylock-adaptive.patch
4 Log:
5 Add a patch to libthr fixing mutex issues encountered with glib.
6
7 (Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 sys-freebsd/freebsd-lib/files/freebsd-lib-9.0-trylock-adaptive.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-lib/files/freebsd-lib-9.0-trylock-adaptive.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-lib/files/freebsd-lib-9.0-trylock-adaptive.patch?rev=1.1&content-type=text/plain
14
15 Index: freebsd-lib-9.0-trylock-adaptive.patch
16 ===================================================================
17 http://www.freebsd.org/cgi/query-pr.cgi?pr=168317
18
19 Index: lib/libthr/thread/thr_mutex.c
20 ===================================================================
21 --- lib/libthr/thread/thr_mutex.c (revision 235924)
22 +++ lib/libthr/thread/thr_mutex.c (working copy)
23 @@ -538,6 +538,7 @@
24 switch (PMUTEX_TYPE(m->m_flags)) {
25 case PTHREAD_MUTEX_ERRORCHECK:
26 case PTHREAD_MUTEX_NORMAL:
27 + case PTHREAD_MUTEX_ADAPTIVE_NP:
28 ret = EBUSY;
29 break;