objective c - wait for a background queue from another background queue ios -
objective c - wait for a background queue from another background queue ios -
i'm uploading files in s3 in background queue , posting message uploaded files attachment. , posting process running on background ui navigations don't hampered. , both queue on different viewcontrollers.
i want wait upload queue , den start post queue.
// in view controller 1 dispatch_queue_t uploadqueue = dispatch_get_global_queue(dispatch_queue_priority_background, 0); dispatch_async(uploadqueue, ^{ // code upload files. }); // in view controller 2 dispatch_queue_t postqueue = dispatch_get_global_queue(dispatch_queue_priority_background, 0); dispatch_async(postqueue, ^{ // code post message. }); m not much clear queue , source. please guide me.
objective-c grand-central-dispatch nsthread
Comments
Post a Comment