I am working with Realm
, I would get/set realm object's property from different operations which are added to one NSOperationQueue
.
Let's say in operation0, I set the realm object's property to a new value, then I add operation1 to the same operation queue, the operation1 fetch the realm object's property which may get the old value because the thread run operation1 may different from operation0.
How can I solve this ? Any suggestion will be appreciate.