summaryrefslogtreecommitdiff
path: root/pthread_mutex_unlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_mutex_unlock.c')
-rw-r--r--pthread_mutex_unlock.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/pthread_mutex_unlock.c b/pthread_mutex_unlock.c
index 7a3f009..5cd51af 100644
--- a/pthread_mutex_unlock.c
+++ b/pthread_mutex_unlock.c
@@ -125,18 +125,11 @@ pthread_mutex_unlock (pthread_mutex_t * mutex)
(LONG)PTW32_ROBUST_INCONSISTENT);
if (PTHREAD_MUTEX_NORMAL == kind)
{
-#if 1
- ptw32_robust_mutex_remove(mutex);
-#else
- mx->ownerThread.p = NULL;
-#endif
+ ptw32_robust_mutex_remove(mutex, NULL);
if ((LONG) PTW32_INTERLOCKED_EXCHANGE((LPLONG) &mx->lock_idx,
(LONG) 0) < 0)
{
-#if 0
- ptw32_robust_mutex_remove(mutex, self);
-#endif
/*
* Someone may be waiting on that mutex.
*/
@@ -151,18 +144,11 @@ pthread_mutex_unlock (pthread_mutex_t * mutex)
if (kind != PTHREAD_MUTEX_RECURSIVE
|| 0 == --mx->recursive_count)
{
-#if 1
- ptw32_robust_mutex_remove(mutex);
-#else
- mx->ownerThread.p = NULL;
-#endif
+ ptw32_robust_mutex_remove(mutex, NULL);
if ((LONG) PTW32_INTERLOCKED_EXCHANGE((LPLONG) &mx->lock_idx,
(LONG) 0) < 0)
{
-#if 0
- ptw32_robust_mutex_remove(mutex, self);
-#endif
/*
* Someone may be waiting on that mutex.
*/