如何在GCD中回调串行调度队列

时间:2014-09-29 06:57:09

标签: iphone

dispatch_queue_t myCustomQueue;
myCustomQueue=dispatch_queue_create("com.example.MyCustomQueue", nil);
dispatch_async(myCustomQueue, ^{
    printf("Do some work here.\n");
});
dispatch_async(myCustomQueue, ^{
    printf("Do Some Things here!!!\n");
});

我实现了Serial Dispatch Queues,之后我分配了两个任务,我想回调一个通知整个应用程序的任务。这个怎么做?。

0 个答案:

没有答案
相关问题