Mastering C++ Multithreading
上QQ阅读APP看书,第一时间看更新

Thread pools

Qt offers thread pools. These require one to inherit from the QRunnable class, and implement the run() function. An instance of this custom class is then passed to the start method of the thread pool (global default pool, or a new one). The life cycle of this worker is then handled by the thread pool.