所以我期待下面的程序打印两行。但是它不打印任何东西。关于需要修复什么的任何想法?
#import <Foundation/Foundation.h>
#import <dispatch/dispatch.h>
int main(int argc, char **argv)
{
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0), ^{
printf("Done outer async\n");
dispatch_async(dispatch_get_main_queue(),^{
printf("Done inner sync");
});
});
return 0;
}
谢谢