From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Nye To: Ross Johnson Cc: 'Pthreads-win32' Subject: Re: asynchronous cancellation Date: Wed, 17 Nov 1999 04:46:00 -0000 Message-id: <3832A3C4.9136C0B3@nbnet.nb.ca> References: X-SW-Source: 1999/msg00136.html Just thought I'd point out a mistake I made in my code I showed you. The if (::WaitForSingleObject(hThread, 0) != WAIT_TIMEDOUT) line should be if (::WaitForSingleObject(hThread, 0) == WAIT_TIMEDOUT) You want to time out on the wait -- it means the thread is still running. Cheers. Jason