On Tue, Jan 31, 2012 at 3:26 PM, Greg Parker <gparker@apple.com> wrote:
Why is the call to pthread_mutexattr_init() commented out? Does it work when you call pthread_mutexattr_init() first?
I would not be surprised if pthread_mutexattr_settype() fails with EINVAL when given an uninitialized attr variable.
Yeah, I saw the same issue with the sample code you did. But if you read the GCC bugzilla entry it appears there's a legitamate bug (or undocumented behavior) here. From what I gather in the comments, the problem isn't with the implementation of the pthread routines, but with the static initializers in certain conditions. _______________________________________________ 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