• 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: Greg Parker <email@hidden>
  • Date: Thu, 24 Oct 2013 03:04:51 -0700

On Oct 23, 2013, at 10:57 PM, Maxthon Chan <email@hidden> wrote:
> Situation: I am writing a custom decoder that decodes objects from JSON-based archives. My objects gets released prematurely, hence a manual retain is asked for.
>
> I need to make this thing work across multiple platforms (that is, Cocoa versus GNUstep) but some certain platform does not have the toll-free bridging capabilities of CFRetain/CFRelease functions, or even lacked CoreFoundation at all (that is, GNUstep can be configured to disable toll-free bridging in their implementation of CoreFoundation, or the CoreFoundation library can be missing entirely since it is optional to them). Calls to those functions are what I have to do to make the decoder work.

If you need to manipulate retain counts directly, the supported mechanisms are:
1. call CFRetain or CFRelease or CFAutorelease.
2. call -retain or -release or -autorelease from a non-ARC file.

Do not call objc_retain or objc_release or objc_autorelease directly.


--
Greg Parker     email@hidden     Runtime Wrangler


_______________________________________________

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: 
 >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>)
 >Re: Deadlock during NSCache flush (From: Jens Alfke <email@hidden>)
 >Re: Deadlock during NSCache flush (From: Greg Parker <email@hidden>)
 >Re: Deadlock during NSCache flush (From: Greg Parker <email@hidden>)
 >Re: Deadlock during NSCache flush (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: Is 10.9 ready for production development?
  • 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