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
aballier    12/05/25 12:24:04

  Added:                freebsd-lib-9.0-trylock-adaptive.patch
  Log:
  Add a patch to libthr fixing mutex issues encountered with glib.
  
  (Portage version: 2.2.0_alpha108/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  sys-freebsd/freebsd-lib/files/freebsd-lib-9.0-trylock-adaptive.patch

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
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

Index: freebsd-lib-9.0-trylock-adaptive.patch
===================================================================
http://www.freebsd.org/cgi/query-pr.cgi?pr=168317

Index: lib/libthr/thread/thr_mutex.c
===================================================================
--- lib/libthr/thread/thr_mutex.c	(revision 235924)
+++ lib/libthr/thread/thr_mutex.c	(working copy)
@@ -538,6 +538,7 @@
 	switch (PMUTEX_TYPE(m->m_flags)) {
 	case PTHREAD_MUTEX_ERRORCHECK:
 	case PTHREAD_MUTEX_NORMAL:
+	case PTHREAD_MUTEX_ADAPTIVE_NP:
 		ret = EBUSY; 
 		break;