diff options
author | rpj <rpj> | 2003-09-02 17:50:26 +0000 |
---|---|---|
committer | rpj <rpj> | 2003-09-02 17:50:26 +0000 |
commit | 458c3e125811053bb0f974f2f0e01fde371ea192 (patch) | |
tree | 1303fa8f1e2eb32df4c23866d4abed65cae62b7c /w32_CancelableWait.c | |
parent | 879bb0613c03b10bdf91aa862c2463b7f9f99087 (diff) |
Allow cancelation of waiting implicit threads.
Diffstat (limited to 'w32_CancelableWait.c')
-rw-r--r-- | w32_CancelableWait.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |