多线程
多线程
Morris_
个人笔记!
展开
-
dispatch_async 与 dispatch_sync
从字面意思上看,sync 同步,async 异步。并行队列 + 异步 = 异步dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ });dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ });并行队列 + 同步 = 同步dispatch_sync(d原创 2020-09-17 10:50:53 · 380 阅读 · 0 评论 -
GCD->OC
VHAsyncRun.h//// VHAsyncRun.h// VHUpload//// Created by vhall on 2019/11/7.// Copyright © 2019 vhall. All rights reserved.//typedef void (^VHRun)(void);void VHAsyncRun(VHRun run);void...原创 2019-11-07 11:52:05 · 115 阅读 · 0 评论