Re: seg.fault in pthread library
Re: seg.fault in pthread library
- Subject: Re: seg.fault in pthread library
- From: Stefan Solbrig <email@hidden>
- Date: Thu, 26 Mar 2009 23:24:18 +0100
Hi,
thanks for the help!
So I have to be more careful with pthread_cancel().
But this brings me to another question: is there a list which
functions are cancellation points?
It is not legal POSIX to cancel a thread which has already been
joined, since its local state information has potentially been
destroyed and/or freed back to the system. It's morally equivalent
to freeing memory and then dereferencing the pointer that used to
point to it and hoping it still lives in your address space.
best regards,
Stefan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden