Suspend ThreadPool.
535 {
537
539
540 std::unique_lock<std::mutex> lock(
m_Mutex);
541
543 }
#define SPICES_PROFILE_ZONE
bool m_IsSuspend
True if needs suspend on executing the task.
std::atomic_int m_IdleThreadSize
Idled thread size.
std::mutex m_Mutex
Mutex for thread safe.
std::atomic_int m_NThreads
Threads Count.
std::condition_variable m_IdleCond
Thread pool thread idle Condition.