Skip to content

Instantly share code, notes, and snippets.

@mirek
Created June 22, 2010 18:08
Show Gist options
  • Save mirek/448836 to your computer and use it in GitHub Desktop.
Save mirek/448836 to your computer and use it in GitHub Desktop.
GDC async macros (C/C++/Objective-C)
#define ASYNC(what) dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ what })
#define MAIN_ASYNC(what) dispatch_async(dispatch_get_main_queue(), ^{ what })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment