Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Make observer property on FBKVOController nonatomic. #105

Merged
merged 1 commit into from
Mar 29, 2016

Conversation

nlutsenko
Copy link
Contributor

Since this is readonly - it doesn't matter if it's atomic or not, so change it to the cheaper getter that doesn't acquire the lock.

@kastiglione
Copy link

Because it's weak, there's no difference. In both cases, the generated getter calls objc_loadWeakRetained, inside which there are locks.

@nlutsenko
Copy link
Contributor Author

TIL

@nlutsenko
Copy link
Contributor Author

Biggest difference- removes nasty infer warning that adds zero signal.

@nlutsenko nlutsenko merged commit ad3bf67 into master Mar 29, 2016
@nlutsenko nlutsenko deleted the nlutsneko.atomic branch March 29, 2016 23:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants