The queue on which to submit the block. The queue is retained by the system until the block has run to completion. This parameter cannot be NULL.
提交塊的隊(duì)列峡迷。
系統(tǒng)持有隊(duì)列直到塊運(yùn)行完成。
此參數(shù)不能為NULL沧烈。
block
The block to submit to the target dispatch queue. This function performs Block_copy and Block_release on behalf of callers. This parameter cannot be NULL.
要提交到目標(biāo)調(diào)度隊(duì)列的塊敛纲。
此函數(shù)代表調(diào)用者執(zhí)行Block_copy和Block_release喂击。
此參數(shù)不能為NULL。
Discussion
This function is the fundamental mechanism for submitting blocks to a dispatch queue. Calls to this function always return immediately after the block has been submitted and never wait for the block to be invoked. The target queue determines whether the block is invoked serially or concurrently with respect to other blocks submitted to that same queue. Independent serial queues are processed concurrently with respect to each other.
此函數(shù)是將塊提交到調(diào)度隊(duì)列的基本機(jī)制淤翔。
調(diào)用此函數(shù)后翰绊,始終在提交塊后立即返回,并且永遠(yuǎn)不會(huì)等待調(diào)用該塊旁壮。
目標(biāo)隊(duì)列確定是否相對(duì)于提交到同一隊(duì)列的其他塊串行或同時(shí)調(diào)用該塊监嗜。 獨(dú)立的串行隊(duì)列相互同時(shí)處理。