OC语言的栅栏函数

dispatch_queue_t barryQueue = dispatch_queue_create("concurrentQueue", DISPATCH_QUEUE_CONCURRENT);

    //加载收货地址数据

    [self loadAddressData];


    dispatch_barrier_sync(barryQueue, ^{

       //主线程

    });

    [self loadAppointmentInfoData];

你可能感兴趣的:(OC语言的栅栏函数)