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

How does this compare to the dispatch_once approach? #3

Open
victor opened this issue Mar 10, 2012 · 0 comments
Open

How does this compare to the dispatch_once approach? #3

victor opened this issue Mar 10, 2012 · 0 comments

Comments

@victor
Copy link

victor commented Mar 10, 2012

I’ve seen elsewhere implementations of a singleton that use dispatch_once to initialize the static variable.
How does that compare with the method swizzling approach, and, can they be combined, or there is no point?

TIA
Victor

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

No branches or pull requests

1 participant