Multithreaded job queue manager

前端 未结 11 2096
情话喂你
情话喂你 2020-12-22 18:42

I need to manage CPU-heavy multitaskable jobs in an interactive application. Just as background, my specific application is an engineering design interface. As a user tweaks

11条回答
  •  攒了一身酷
    2020-12-22 19:32

    Would something like threadpool be useful to you? It's based on boost::threads and basically implements a simple thread task queue that passes worker functions off to the pooled threads.

提交回复
热议问题