摘要: Operation queues usually provide the threads used to run their operations. In OS X v10.6 and later, operation queues use the libdispatch library (also known as Grand Central Dispatch) to initiate the execution of their operations. As a result, operations are always executed on a separate thread, reg 阅读全文
posted @ 2013-05-01 19:46 Eric.wei 阅读(155) 评论(0) 推荐(0) 编辑
摘要: dispatch_queue_tA dispatch queue is a lightweight object to which your application submits blocks for subsequent execution.typedef struct dispatch_queue_s *dispatch_queue_t;DiscussionA dispatch queue invokes blocks submitted to it serially in FIFO order. A serial queue invokes only one block at a ti 阅读全文
posted @ 2013-05-01 16:04 Eric.wei 阅读(325) 评论(0) 推荐(0) 编辑
摘要: static dispatch_queue_t xml_request_operation_processing_queue() { static dispatch_queue_t af_xml_request_operation_processing_queue; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ af_xml_request_operation_processing_queue = dispatch_queue_create("com.alamofire.networ... 阅读全文
posted @ 2013-05-01 09:52 Eric.wei 阅读(402) 评论(0) 推荐(0) 编辑