summaryrefslogtreecommitdiff
path: root/condvar.c
diff options
context:
space:
mode:
Diffstat (limited to 'condvar.c')
-rw-r--r--condvar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/condvar.c b/condvar.c
index addf750..0468294 100644
--- a/condvar.c
+++ b/condvar.c
@@ -78,6 +78,9 @@ cond_wait(pthread_cond_t *cv, pthread_mutex_t *mutex, DWORD abstime)
return EINVAL;
}
+ /* CANCELATION POINT */
+ pthread_testcancel();
+
/* Avoid race conditions. */
EnterCriticalSection (&cv->waiters_count_lock);
cv->waiters_count_++;