summaryrefslogtreecommitdiff
path: root/pthread_mutex_trylock.c
diff options
context:
space:
mode:
authorrpj <rpj>2011-03-25 09:22:50 +0000
committerrpj <rpj>2011-03-25 09:22:50 +0000
commit559e1bc4051f90d7a014bd4e4f5649e136dec412 (patch)
tree70e6f76c3b353b0b74b698a51088f5b9a38e53ab /pthread_mutex_trylock.c
parent395de1c8a9a25c343a6784cfc3ecf729c48024d8 (diff)
Robust mutex streamlining
Diffstat (limited to 'pthread_mutex_trylock.c')
-rw-r--r--pthread_mutex_trylock.c8
1 files changed, 0 insertions, 8 deletions
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
{