• 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: Multithreading crash in -[NSConditionLock unlockWithCondition:]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multithreading crash in -[NSConditionLock unlockWithCondition:]


  • Subject: Re: Multithreading crash in -[NSConditionLock unlockWithCondition:]
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 24 Jan 2013 06:51:38 -0800

On 2013 Jan 23, at 23:07, Quincey Morris <email@hidden> wrote:

> What's the source code line that invokes 'unlockWithCondition:'?  If it's sending that message to a local variable, then the ARC version is safe

As it turns out, it was sending to a local variable, not due to any foresight on my part, but for convenience.  Until yesterday when I read an old Mike Ash Friday Q&A on this topic, and now your explanation, I tended to use a local variable vs. repeating the accessor based on which required less typing or looked neater.

> this isn't a memory management issue, but rather a thread safety issue.

Yes, that's a good point.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Multithreading crash in -[NSConditionLock unlockWithCondition:] (From: Jerry Krinock <email@hidden>)
 >Re: Multithreading crash in -[NSConditionLock unlockWithCondition:] (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Hover button and tracking area questions
  • Next by Date: Re: Hover button and tracking area questions
  • Previous by thread: Re: Multithreading crash in -[NSConditionLock unlockWithCondition:]
  • Next by thread: Hover button and tracking area questions
  • Index(es):
    • Date
    • Thread