On Sun 17 Nov 19:28, Stephen J. Butler wrote:
That method makes 100% sense to me. Where did you hear lock/unlock is the way to share pthread structures?
The objective of the standard idiom is not to share the pthread entities between processes, but to prevent the child from deadlocking. See, e.g., the dicsussion in Butenhof's book, or here: http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/229... Note also that the scheme outlined in the link you provided is just as susceptible to the deadlock problem if the forking process is multi-threaded. Ariel Burton _______________________________________________ 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: https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.app... This email sent to site_archiver@lists.apple.com
participants (1)
-
Ariel Burton