summaryrefslogtreecommitdiff
path: root/debian/patches/libpthread_mutex_owner.patch
diff options
context:
space:
mode:
authorSamuel Thibault <sthibault@debian.org>2009-04-29 09:14:58 +0000
committerSamuel Thibault <sthibault@debian.org>2009-04-29 09:14:58 +0000
commit5a1020c08a9d71af2c32093755debcfc0bfdcb4b (patch)
tree64faa726b7a843ba8ad7ecafb67c082fed9f92ea /debian/patches/libpthread_mutex_owner.patch
parentd17b719c19cd63744645f2dbe90e7ac3233cf17f (diff)
complete libpthread_mutex_owner patch
Diffstat (limited to 'debian/patches/libpthread_mutex_owner.patch')
-rw-r--r--debian/patches/libpthread_mutex_owner.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/libpthread_mutex_owner.patch b/debian/patches/libpthread_mutex_owner.patch
index b2b3c7ee..470023cc 100644
--- a/debian/patches/libpthread_mutex_owner.patch
+++ b/debian/patches/libpthread_mutex_owner.patch
@@ -133,3 +133,26 @@ diff -u -p -r1.5 pt-mutex-unlock.c
#endif
/* We do not unlock MUTEX->held: we are transferring the ownership
+Index: libpthread/sysdeps/generic/pt-mutex-trylock.c
+===================================================================
+RCS file: /cvsroot/hurd/hurd/libpthread/sysdeps/generic/pt-mutex-trylock.c,v
+retrieving revision 1.7
+diff -u -p -r1.7 pt-mutex-trylock.c
+--- libpthread/sysdeps/generic/pt-mutex-trylock.c 12 Aug 2008 15:07:49 -0000 1.7
++++ libpthread/sysdeps/generic/pt-mutex-trylock.c 29 Apr 2009 08:20:19 -0000
+@@ -34,6 +34,7 @@ __pthread_mutex_trylock (struct __pthrea
+ if (__pthread_spin_trylock (&mutex->__held) == 0)
+ /* Acquired the lock. */
+ {
++#if defined(ALWAYS_TRACK_MUTEX_OWNER)
+ #ifndef NDEBUG
+ self = _pthread_self ();
+ if (self)
+@@ -45,6 +46,7 @@ __pthread_mutex_trylock (struct __pthrea
+ mutex->owner = _pthread_self ();
+ }
+ #endif
++#endif
+
+ if (mutex->attr)
+ switch (mutex->attr->mutex_type)