- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 GCD:创建并发队列
网上各种关于GCD队列的文章中都说队列分为串行和并行队列,串行队列有主队列和通过dispatch_queue_create(const char *label, NULL)创建的队列,并行队列有dispatch_get_global_queue()获取的四个优先级的队列,没有人提过并行队列能否自己创建。后来试了下dispatch_queue_create()中的第二个参数,发现可以创建并行队列。然
2015-06-26 17:11:27
827
原创 GCD:dispatch_sync会在当前线程中执行派发到其他队列的任务
dispatch_sync的官方文档中有这么一句话: As an optimization, this function invokes the block on the current thread when possible. 意思是作为优化手段,如果可以,block会直接在当前线程中执行。 然后写了几段代码测试了下: dispatch_async(_myQueue1, ^
2015-06-26 16:43:26
983
原创 iOS中Bonjour:NSNetServiceBrowser在子线程上使用
如果在子线程上创建一个NSNetServiceBrowser,并调用searchForServicesOfType开始搜索,发现不起作用。查看苹果的文档发现这么一段话: A network service browser performs all searches asynchronously using the current run loop to execute the search
2015-06-24 15:46:52
980
Robust video denoising using low rank matrix completion
2013-06-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人