Created
August 19, 2014 19:47
-
-
Save Bensge/a26e5c645580f5cf64db to your computer and use it in GitHub Desktop.
Macro for short main thread dispatch in Objective-C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define DISMAIN( CODE ) \ | |
do { \ | |
dispatch_sync(dispatch_get_main_queue(), ^{ \ | |
CODE \ | |
}); \ | |
} while (0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment