diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-06-29 02:43:00 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-06-29 02:43:00 +0000 |
commit | 531acb4bc4f8c16a5e202a9ce702b012f923ac7b (patch) | |
tree | c088f958ff5c794843935799b246a9029d3ce2be /sysdeps | |
parent | 0acb426838244a35d632eb5030b3ffcc293414e2 (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.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/generic/pt-mutex-unlock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/generic/pt-mutex-unlock.c b/sysdeps/generic/pt-mutex-unlock.c index d2a42570..bfb9803e 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 |