From 559e1bc4051f90d7a014bd4e4f5649e136dec412 Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 25 Mar 2011 09:22:50 +0000 Subject: Robust mutex streamlining --- pthread_mutex_trylock.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'pthread_mutex_trylock.c') diff --git a/pthread_mutex_trylock.c b/pthread_mutex_trylock.c index f51c34c..6fcff75 100644 --- a/pthread_mutex_trylock.c +++ b/pthread_mutex_trylock.c @@ -123,11 +123,7 @@ pthread_mutex_trylock (pthread_mutex_t * mutex) { mx->recursive_count = 1; } -#if 1 ptw32_robust_mutex_add(mutex, self); -#else - mx->ownerThread = self; -#endif } else { @@ -141,11 +137,7 @@ pthread_mutex_trylock (pthread_mutex_t * mutex) if (EOWNERDEAD == (result = ptw32_robust_mutex_inherit(mutex))) { mx->recursive_count = 1; -#if 1 ptw32_robust_mutex_add(mutex, self); -#else - mx->ownerThread = self; -#endif } else { -- cgit v1.2.3