3 ms·
>retain & release are thread-safe That's optional tho, and I never use it that way.
by DenisM 7y ago
>retain & release are thread-safe
That's optional tho, and I never use it that way.
- kllrnohj 7y agoDo you have a link to what you're referring to? Apple's docs clearly state retain/release are thread safe. Are you using your own implementation of retain & release or something?
- DenisM 7y agoFor sure. It's entirely stock: @property (strong, nonatomic) UIView* unselectedTabsView; "nonatomic" means avoid synchronization code. This code is not thread safe for that reason, but I never do cross-thread access anyways.
- favorited 7y agoThat means reads of/writes to the property are nonatomic. Certain (not all) ARC refcount functions are required to be atomic no matter what.