summaryrefslogtreecommitdiff
path: root/ptw32_reuse.c
diff options
context:
space:
mode:
authorrpj <rpj>2011-03-24 23:33:14 +0000
committerrpj <rpj>2011-03-24 23:33:14 +0000
commitdb171f2f9435b98f05f33fcbc0dcf0c5cc1cb917 (patch)
tree9d617a20a9e0ad1fcf415e353057c53e6d77d0f3 /ptw32_reuse.c
parente5229a33f8724a90cbb0b56c3ecc1d6691bf54d7 (diff)
First pass of robust mutexes
Diffstat (limited to 'ptw32_reuse.c')
-rw-r--r--ptw32_reuse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ptw32_reuse.c b/ptw32_reuse.c
index 79e4dee..31ebdc4 100644
--- a/ptw32_reuse.c
+++ b/ptw32_reuse.c
@@ -132,6 +132,8 @@ ptw32_threadReusePush (pthread_t thread)
tp->ptHandle.x++;
#endif
+ tp->state = PThreadStateReuse;
+
tp->prevReuse = PTW32_THREAD_REUSE_EMPTY;
if (PTW32_THREAD_REUSE_EMPTY != ptw32_threadReuseBottom)