• 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: My app breaks when moved while running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My app breaks when moved while running


  • Subject: Re: My app breaks when moved while running
  • From: "Kyle Sluder" <email@hidden>
  • Date: Fri, 8 Feb 2008 12:16:34 -0500

On Feb 8, 2008 12:11 PM, Jens Alfke <email@hidden> wrote:
> Another issue with caching aliases is that it's prone to race
> conditions. At some point you have to dereference the alias into a
> path, and then use the path. If the app moves in between those two
> moments, the attempt to use the path will fail.

Alias records since 10.3 (I think) dereference based on path
heuristics first, and then fall back on attribute matching.  While not
immune to the race condition (call to dereference, block on IO, get
scheduled off processor, file moves and is truncated or something, get
scheduled back on processor and begin executing) it's at least a bit
more resilient.

--Kyle Sluder
_______________________________________________

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: 
 >Re: My app breaks when moved while running (From: Gregory Weston <email@hidden>)
 >Re: My app breaks when moved while running (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Encryption Frameworks in Cocoa
  • Next by Date: Re: CARenderer difficulties with rendering 3D transformed layers
  • Previous by thread: Re: My app breaks when moved while running
  • Next by thread: Re: My app breaks when moved while running
  • Index(es):
    • Date
    • Thread