• 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: Are NSFileWrappers safe for concurrent access?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are NSFileWrappers safe for concurrent access?


  • Subject: Re: Are NSFileWrappers safe for concurrent access?
  • From: Quincey Morris <email@hidden>
  • Date: Sat, 25 Jun 2016 12:18:57 -0700
  • Feedback-id: 167118m:167118agrif8a:167118sVZILFek5r:SMTPCORP

On Jun 25, 2016, at 01:40 , Rick Mann <email@hidden> wrote:
>
> It seems that they might not be, but I can't find documentation either way.

What do you mean by “access”? Are you referring to their internal state, or their relationship to the file system?

NSFileWrapper is *not* listed as thread-safe:

	https://developer.apple.com/library/prerelease/content/documentation/Cocoa/Conceptual/Multithreading/ThreadSafetySummary/ThreadSafetySummary.html

so I’d assume it comes under the general rubric of “mutable objects”, since the properties that hold file data can change. It’s even possible (though I don’t recall offhand any evidence that makes this a plausible claim) that they access file system information lazily, so even reading properties that don’t change may mutate the internal state.
_______________________________________________

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: Are NSFileWrappers safe for concurrent access?
      • From: Rick Mann <email@hidden>
References: 
 >Are NSFileWrappers safe for concurrent access? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Satisfying a protocol - getters vs. functions
  • Next by Date: Re: Satisfying a protocol - getters vs. functions
  • Previous by thread: Are NSFileWrappers safe for concurrent access?
  • Next by thread: Re: Are NSFileWrappers safe for concurrent access?
  • Index(es):
    • Date
    • Thread