Re: recursive mutexes in Lion?
Re: recursive mutexes in Lion?
- Subject: Re: recursive mutexes in Lion?
- From: "Stephen J. Butler" <email@hidden>
- Date: Tue, 31 Jan 2012 17:58:05 -0600
On Tue, Jan 31, 2012 at 3:26 PM, Greg Parker <email@hidden> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden