blob: 684a7de5de6f28f690185ccf6b7cb17a70a61222 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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)
|