Sometimes we have a simple readOnly Property whose value may change
@property (readonly) NSFetchedResultsController * FetchController;
@property (readonly) NSFetchRequest * FetchRequest;
@property (readonly) NSPredicate * KeywordPredicate;
I suppose when the value change it's done on a blink of an eye through some sort of simple pointer manipulation. Something like
_FetchRequest = newFetchRequest;
The actual process of changing may change a lot but the actual change should be on that one line.
The question is, is such simple pointer assignment always atomic? What about if that one line actually consist of several line of machine codes and somebody ask for the property between those machine codes?
At the end the question is whether simple assignment operator on pointers is always atomic or not.
If so, when it is atomic and what's not? Simple assignment operators won't be atomic for complex objects of course.
So to what extend those simple one line assignment operators are atomic? For pointers and primitive types, will it always be?