You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've come across a peculiar threading issue. It seems that parsing an object of Class X while serializing a separate object of Class X on a separate thread can cause data inconsistencies with the parsed object. I've created a sample app that demonstrates said issue.
Parsing and serializing objects of the same class should be allowed on separate threads at the same time. The use case for this functionality is parsing JSON from a database read while serializing JSON from a network response to be saved to the database.
Yes, it's maintained. It's not, however my full time job. Nor am I under any obligation to answer until I've had time to look at issues. Pull requests are welcome. Implying that I owe it to people to drop what I'm doing and answer questions right away is not. The point of open source is that others are able to contribute.
That being said, I'll try to have a solution for this ready by the end of the day.
@Smpete Sorry for the wait and thanks for the sample project. I've fixed the issue and will be pushing an update shortly (gotta fix a few other things first. I'll keep you posted.
I've come across a peculiar threading issue. It seems that parsing an object of Class X while serializing a separate object of Class X on a separate thread can cause data inconsistencies with the parsed object. I've created a sample app that demonstrates said issue.
Parsing and serializing objects of the same class should be allowed on separate threads at the same time. The use case for this functionality is parsing JSON from a database read while serializing JSON from a network response to be saved to the database.
Let me know if you need further info.
ThreadingIssue.zip
The text was updated successfully, but these errors were encountered: