GCD Pending Repair

Source: Internet
Author: User

When you append a large amount of processing to the dispatch queue, sometimes you do not want to perform the appended processing during the append process. When a column is intercepted by block, some processing can affect the result of the calculation.

In this case, you can just suspend the dispatch Queue. When execution is in recovery.

The Dispatch_suspend function suspends the specified dispatch queue.

dispatch_suspend (queue);

The Dispatch_resume function restores the specified dispatch queue.

dispatch_resume (queue);

These functions have no effect on the processing that has been performed. After suspending, processing that is appended to the dispatch Queue but not yet executed is stopped after this. Recovery allows these processes to be carried out.

GCD Pending Repair

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.