I have a question on thread safety while using NSMutableDictionary.
The main thread is reading data from NSMutableDictionary where:
- key is
NSString - value is
UIImage
An asynchronous thread is writing data to above dictionary (using NSOperationQueue)
How do I make the above dictionary thread safe?
Should I make the NSMutableDictionary property atomic? Or do I need to make any additional changes?
@property(retain) NSMutableDictionary *dicNamesWithPhotos;