Skip to content
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

Fixed wrong statement about thread safety of formatters #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed wrong statement about thread safety of formatters #128

wants to merge 1 commit into from

Conversation

valeriyvan
Copy link
Member

Fixed wrong statement about thread safety of NSDateFormatter and NSNumberFormatter

Fixed wrong statement about thread safety of NSDateFormatter and NSNumberFormatter
@chriseidhof
Copy link
Contributor

Hm, great point. But I think it's slightly more complicated even. Even if the properties themselves have atomic getters and setters, the fact that the object is mutable at all makes it unsafe for multi-threaded programming... I'm not sure what's the best way to word this.

@valeriyvan
Copy link
Member Author

I just cited Apple docs in footnote. May be it does make sense add a ref to Apple docs in footnote as well.

@valeriyvan
Copy link
Member Author

If Apple states these are thread safe in iOS 7+, I believe them. It's interesting how they achieved that. Lock free structures? Good question to ask in labs in WWDC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants