Re: seg.fault in pthread library
Re: seg.fault in pthread library
- Subject: Re: seg.fault in pthread library
- From: Jason Coco <email@hidden>
- Date: Fri, 27 Mar 2009 10:51:03 -0400
man pthread_testcancel
see Cancellation Points :-)
On Mar 26, 2009, at 18:24 , Stefan Solbrig wrote:
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
_______________________________________________
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