Re: Are NSFileWrappers safe for concurrent access?
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