Skip to content

Instantly share code, notes, and snippets.

@mtgto
Created February 26, 2013 10:29
Show Gist options
  • Save mtgto/5037515 to your computer and use it in GitHub Desktop.
Save mtgto/5037515 to your computer and use it in GitHub Desktop.
#include <dispatch/dispatch.h>
int main() {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{puts("gcd! gcd!");});
sleep(1);
}
clang dispatch.c -o dispatch -fblocks -ldispatch -lBlocksRuntime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment