CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
跨平台线程池 更多...
Public 成员函数 | |
CThreadPool () | |
~CThreadPool () | |
void | InitPoolSize (int n) |
void | Shutdown () |
void | SubmitTask (std::function< void()> fn) |
bool | IsShutdown () |
Protected 属性 | |
int | m_thread_count |
bool | m_shutdown |
SafeQueue< std::function< void()> > | m_queue |
std::vector< std::thread > | m_threads |
std::mutex | m_conditional_mutex |
std::condition_variable | m_conditional_lock |
跨平台线程池
BUI::CThreadPool::CThreadPool | ( | ) |
BUI::CThreadPool::~CThreadPool | ( | ) |
void BUI::CThreadPool::InitPoolSize | ( | int | n | ) |
bool BUI::CThreadPool::IsShutdown | ( | ) |
void BUI::CThreadPool::Shutdown | ( | ) |
void BUI::CThreadPool::SubmitTask | ( | std::function< void()> | fn | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |