Re: seg.fault in pthread library
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com best regards, Stefan _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Stefan Solbrig