Core Data: thread safety of NSPersistentStore +metadataForPersistentStoreWithURL:... (and +set...)?
Core Data: thread safety of NSPersistentStore +metadataForPersistentStoreWithURL:... (and +set...)?
- Subject: Core Data: thread safety of NSPersistentStore +metadataForPersistentStoreWithURL:... (and +set...)?
- From: Jim Correia <email@hidden>
- Date: Fri, 24 Apr 2009 21:17:38 -0400
I don't see that the documentation specifically calls out
@interface NSPersistentStore
+ (NSDictionary *)metadataForPersistentStoreWithURL:(NSURL *)url error:
(NSError **)error;
+ (BOOL)setMetadata:(NSDictionary *)metadata forPersistentStoreWithURL:
(NSURL*)url error:(NSError **)error;
@end
as being thread safe. (And in fact, these are abstract and need to be
implemented by the concrete stores.)
(Outside of the obvious potential race condition) Is it intended that
these methods are thread safe for Apple-supplied persistent stores
(i.e. concurrently and/or non-main-thread callable)?
Jim
_______________________________________________
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