-
-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ParseObjectCoder.encode is not thread-safe #76
Comments
This is an example of how Though we can argue that every call to |
We could make a deep-copy of the operation set in |
Deep-copy won't solve the problem I mentioned in #78. |
from #78 : |
Sounds good. Closing this one |
ParseObjectCoder.encode
signature acceptsParseObject.State
,ParseOperationSet
andParseEncoder
. WhileParseObject.State
andParseEncoder
is immutable and thread-safe,ParseOperationSet
can be mutated anytime and is not guarded by any mutex. We need to either guard theParseOperationSet
with mutex or make a copy of thisParseOperationSet
somewhere and pass the copy toParseObjectCoder.encode
.The text was updated successfully, but these errors were encountered: