.. index:: pair: class; QPanda::threadPool .. _doxid-class_q_panda_1_1thread_pool: class QPanda::threadPool ======================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class threadPool { public: // methods bool :ref:`init_thread_pool`(size_t thread_cnt = :ref:`DEFAULT_THREAD_CNT`); bool :target:`append`(:ref:`Task` task); }; .. _details-class_q_panda_1_1thread_pool: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; init_thread_pool .. _doxid-class_q_panda_1_1thread_pool_1a6a40bdbf0dc7415e10541f6c1daf1ce4: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool init_thread_pool(size_t thread_cnt = :ref:`DEFAULT_THREAD_CNT`) init thread pool .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - size_t - Number of threads in the thread pool, 8 by default .. rubric:: Returns: void