summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-06-29 02:43:00 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2008-06-29 02:43:00 +0000
commitc38729c662cba11dca78e03dca23cec3eaec9f92 (patch)
treeb901876da56cf96c6ac7cfac2decab43073123a6
parentcaacc548f4bfa2f6b86ae761bffba8d49f823e24 (diff)
2008-06-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
* sysdeps/generic/pt-mutex-unlock.c (__pthread_mutex_unlock): Do not use assertx and threadid.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/generic/pt-mutex-unlock.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5713a0c..4c53697 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * sysdeps/generic/pt-mutex-unlock.c (__pthread_mutex_unlock):
+ Do not use assertx and threadid.
+
2008-06-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
* include/pthread/pthread.h: Do not define __need_clockid_t, include
diff --git a/sysdeps/generic/pt-mutex-unlock.c b/sysdeps/generic/pt-mutex-unlock.c
index d2a4257..bfb9803 100644
--- a/sysdeps/generic/pt-mutex-unlock.c
+++ b/sysdeps/generic/pt-mutex-unlock.c
@@ -37,12 +37,16 @@ __pthread_mutex_unlock (pthread_mutex_t *mutex)
if (_pthread_self ())
{
assert (mutex->owner);
+#if 0
assertx (mutex->owner == _pthread_self (),
"%p(%x) != %p(%x)",
mutex->owner,
((struct __pthread *) mutex->owner)->threadid,
_pthread_self (),
_pthread_self ()->threadid);
+#else
+ assert (mutex->owner == _pthread_self ());
+#endif
mutex->owner = NULL;
}
#endif