From 458c3e125811053bb0f974f2f0e01fde371ea192 Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 2 Sep 2003 17:50:26 +0000 Subject: Allow cancelation of waiting implicit threads. --- w32_CancelableWait.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'w32_CancelableWait.c') diff --git a/w32_CancelableWait.c b/w32_CancelableWait.c index 42f28f5..6352ff9 100644 --- a/w32_CancelableWait.c +++ b/w32_CancelableWait.c @@ -104,15 +104,15 @@ ptw32_cancelable_wait (HANDLE waitHandle, DWORD timeout) case 1: /* * Got cancel request. - * In the event that both handles are signalled, the cancel will + * In the event that both handles are signaled, the cancel will * be ignored (see case 0 comment). */ ResetEvent (handles[1]); - if (self != NULL && !self->implicit) + if (self != NULL) { /* - * Thread started with pthread_create. + * Should handle POSIX and implicit POSIX threads.. * Make sure we haven't been async-canceled in the meantime. */ (void) pthread_mutex_lock(&self->cancelLock); -- cgit v1.2.3