if we define a property in the following way:
@property (atomic) NSString *latestObject;
Can we assume that the read write to that value is thread safe?
i.e the value will be correct.
Or it is better to write our own setter/getter with Locks?
Non-atomic properties are not thread safe. I was very clear about that earlier:
Nonatomic properties are not thread safe. That’s by definition
could you please provide a reproducible snippet of code that breaks thread safety … ?
No, sorry, I don’t have time for that.
what is the Apple definition of thread safety?
I don’t think Apple has a consistent definition of thread safety, which is why I’ve spent time on this thread coming up with a definition that we agree on.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"