SpiecsEngine
 
Loading...
Searching...
No Matches

◆ ThreadPool_Basic() [1/2]

template<typename ... Params>
Spices::ThreadPool_Basic< Params >::ThreadPool_Basic ( const std::string & name = "NonNameT")
inline

Constructor Function.

Parameters
[in]nameThreadPool Name.

Definition at line 465 of file ThreadPoolBasic.h.

466 : m_PoolName(name)
471 , m_IsPoolRunning(false)
472 , m_IsSuspend(false)
473 {}
bool m_IsSuspend
True if needs suspend on executing the task.
std::atomic_int m_IdleThreadSize
Idled thread size.
PoolMode m_PoolMode
Thread Pool Run Mode.
std::string m_PoolName
This ThreadPool Name.
uint32_t m_InitThreadSize
Initialized thread size.
uint32_t m_ThreadIdleTimeOut
thread idle time out.
std::atomic_bool m_IsPoolRunning
True if this thread pool is in use.
constexpr uint32_t THREAD_MAX_IDLE_TIME

References Spices::ThreadPool_Basic< Params >::m_InitThreadSize, Spices::ThreadPool_Basic< Params >::m_IsSuspend, Spices::ThreadPool_Basic< Params >::m_PoolMode, Spices::ThreadPool_Basic< Params >::m_PoolName, Spices::ThreadPool_Basic< Params >::m_ThreadIdleTimeOut, Spices::MODE_FIXED, Spices::THREAD_MAX_IDLE_TIME, and Spices::ThreadPool_Basic< Params >::ThreadPool_Basic().

Referenced by Spices::ThreadPool_Basic< Params >::ThreadPool_Basic().