lkpindustry.blogg.se

C++ auto queue
C++ auto queue












It eliminates the code needed to create and configure your threads.It reduces the memory penalty your application pays for storing thread stacks in the application’s memory space.To quote Apple on the advantages of using dispatch queues instead of threads:

c++ auto queue

Threads can dispatch single functional operations to run asynchronously on the dispatch work threads.Īpple is encouraging its app developers to move away from threads and to instead utilize central dispatch queues to run asynchronous processing. Here’s a quick review of what a dispatch queue is, in case you haven’t read the previous article: The dispatcher contains multiple generic-use threads and a work queue. Previously, I introduced the concept of dispatch queues.














C++ auto queue