From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hensema To: 'Pthreads-win32' Subject: cancelation problem Date: Mon, 08 Nov 1999 02:20:00 -0000 Message-id: X-SW-Source: 1999/msg00119.html Hi, I'm investigating a problem regarding thread cancelation. The thread I want to cancel has PTHREAD_CANCEL_ASYNCHRONOUS, however, this piece of code blocks on the join(): if ((retv = Pthread_cancel( recvThread )) == 0) { retv = Pthread_join( recvThread, 0 ); } Pthread_* are just macro's; they call pthread_*. The thread recvThread seems to block on a select() call. It doesn't get cancelled. Two questions: 1) is this normal behaviour? 2) if not, how does the cancel mechanism work? I'm not very familliar to win32 programming, so I don't really understand how the *Event() family of calls work. -- Erik Hensema Work: erik.hensema@group2000.nl Home: erik@hensema.xs4all.nl