Re: phread_join problem

2006-03-16 Thread Artem Alimarine
Jerry D. Hedden wrote: > You can't join to a cancelled thread. Cannot you? From reading the posix thread documentation I have an impression that you can. See for instance http://www.opengroup.org/onlinepubs/009695399/functions/pthread_join.html It says: > The pthread_join() or pthread_deta

RE: phread_join problem

2006-03-16 Thread Jerry D. Hedden
> res = pthread_cancel(the_handle); > assert(res == 0); > cout << "cancelled, joining\n"; > res = pthread_join(the_handle, NULL); You can't join to a cancelled thread. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/prob

phread_join problem

2006-03-16 Thread Artem Alimarin
Hi, I have a problem with the small program attached below that does not do what I expect. The program prints: cancelling cleanup cancelled, joining exception last chance thread is about to return pthread_join hangs infinitely. I expect the join to resume because the thread has exitted. What is