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
> 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
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
3 matches
Mail list logo