From c31136724ab51c9b935344c46d3eca51c8b37d55 Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 25 Mar 2011 02:53:23 +0000 Subject: Terminating thread robust signaling changes --- pthread_mutex_timedlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pthread_mutex_timedlock.c') diff --git a/pthread_mutex_timedlock.c b/pthread_mutex_timedlock.c index d81b9c3..d4c280d 100644 --- a/pthread_mutex_timedlock.c +++ b/pthread_mutex_timedlock.c @@ -223,7 +223,7 @@ pthread_mutex_timedlock (pthread_mutex_t * mutex, (LPLONG) &mx->lock_idx, (LONG) 1) != 0) { - while (0 == (result = ptw32_robust_mutex_inherit(mutex, self)) + while (0 == (result = ptw32_robust_mutex_inherit(mutex)) && (LONG) PTW32_INTERLOCKED_EXCHANGE( (LPLONG) &mx->lock_idx, (LONG) -1) != 0) @@ -296,7 +296,7 @@ pthread_mutex_timedlock (pthread_mutex_t * mutex, } else { - while (0 == (result = ptw32_robust_mutex_inherit(mutex, self)) + while (0 == (result = ptw32_robust_mutex_inherit(mutex)) && (LONG) PTW32_INTERLOCKED_EXCHANGE( (LPLONG) &mx->lock_idx, (LONG) -1) != 0) -- cgit v1.2.3