summaryrefslogtreecommitdiff
path: root/pthread_testcancel.c
diff options
context:
space:
mode:
authorrpj <rpj>2008-06-07 03:46:52 +0000
committerrpj <rpj>2008-06-07 03:46:52 +0000
commit199616f24c022887ea8535c14b4fb668bee32c31 (patch)
tree9d4efdb78b87cee2a291b16a215e127b3c8f48a8 /pthread_testcancel.c
parent86c1cb4629aa8827c96b5f769c595178c5275b93 (diff)
''
Diffstat (limited to 'pthread_testcancel.c')
-rw-r--r--pthread_testcancel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_testcancel.c b/pthread_testcancel.c
index ad7cdb9..9686d9e 100644
--- a/pthread_testcancel.c
+++ b/pthread_testcancel.c
@@ -92,10 +92,10 @@ pthread_testcancel (void)
{
ResetEvent(sp->cancelEvent);
sp->state = PThreadStateCanceling;
- (void) pthread_mutex_unlock (&sp->cancelLock);
sp->cancelState = PTHREAD_CANCEL_DISABLE;
(void) pthread_mutex_unlock (&sp->cancelLock);
ptw32_throw (PTW32_EPS_CANCEL);
+ /* Never returns here */
}
(void) pthread_mutex_unlock (&sp->cancelLock);