Subj : Re: CondVar on Windows : what to do when a consumer thread is killed To : comp.programming.threads From : Joe Seigh Date : Fri Jul 01 2005 07:43 am adebaene@club-internet.fr wrote: > > What does Posix says on behaviour of a condvar whenever a waiting > thread is killed? > That's there's one less thread waiting. You should stop killing off your threads that way. Anyway, it's something you deliberately did so you should be able to handle it. How did you kill the thread? A signal isn't guaranteed to generate a spurious wakeup. If you used pthread cancel then your cleanup handlers should have taken care of the problem. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .