class QPanda::threadPool¶
Overview¶
#include <ThreadPool.h> class threadPool { public: // methods bool init_thread_pool(size_t thread_cnt = DEFAULT_THREAD_CNT); bool append(Task task); };
Detailed Documentation¶
Methods¶
bool init_thread_pool(size_t thread_cnt = DEFAULT_THREAD_CNT)
init thread pool
Parameters:
size_t |
Number of threads in the thread pool, 8 by default |
Returns:
void