• 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: Deadlock during NSCache flush
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deadlock during NSCache flush


  • Subject: Re: Deadlock during NSCache flush
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 21 Oct 2013 22:14:28 -0700

On Oct 21, 2013, at 8:07 PM, Maxthon Chan <email@hidden> wrote:

> If your app is called Hammersmith, you can retain/autorelease it in your [CBLDatabase dealloc] or [CBLCache dealloc]

It’s not my app, it’s a customer’s that uses my library. But the CBL classes are part of my library, yes.

As for autorelease: "This has come up once before for me, and I was able to work around it by making the cache-owner object call -autorelease instead of -release on the NSCache, to defer the call to the cache’s dealloc. But I’m now using ARC so that isn’t an option.”

Although there’s probably some hacky way to force an autorelease…

—Jens
_______________________________________________

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


  • Follow-Ups:
    • Re: Deadlock during NSCache flush
      • From: Greg Parker <email@hidden>
References: 
 >Deadlock during NSCache flush (From: Jens Alfke <email@hidden>)
 >Re: Deadlock during NSCache flush (From: ChanMaxthon <email@hidden>)
 >Re: Deadlock during NSCache flush (From: Jens Alfke <email@hidden>)
 >Re: Deadlock during NSCache flush (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: 3rd party executable in iOS project
  • Next by Date: Re: Deadlock during NSCache flush
  • Previous by thread: Re: Deadlock during NSCache flush
  • Next by thread: Re: Deadlock during NSCache flush
  • Index(es):
    • Date
    • Thread