• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: recursive mutexes in Lion?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >recursive mutexes in Lion? (From: Jack Howarth <email@hidden>)
 >Re: recursive mutexes in Lion? (From: Greg Parker <email@hidden>)

  • Prev by Date: Re: recursive mutexes in Lion?
  • Previous by thread: Re: recursive mutexes in Lion?
  • Next by thread: Re: recursive mutexes in Lion?
  • Index(es):
    • Date
    • Thread