-
Notifications
You must be signed in to change notification settings - Fork 13
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
mainThread VS mainQueue #3
Comments
Thank you for the tip! |
The use of get_specific is highly discouraged by Apple |
@grgcombs can you point at something to read up on? For example if it's causing problems, which ones? |
Wow -- could be that I totally fabricated that idea. I cannot find the tech note or release notes that talk about this. Will keep looking, but for now just assume I was pranking you. |
@grgcombs It's written here:
In the example mentioned above this function is used correctly: it's being invoked with a pointer. |
There are quite a few checks like
NSThread.isMainThread()
in the code. Maybe this should be changed to checking for the main queue instead?Here's sample code to check for the queue instead, based on http://blog.benjamin-encz.de/post/main-queue-vs-main-thread/, where the difference is explained, too:
The text was updated successfully, but these errors were encountered: