All values are protected by m_mutex. So we don't need the polling to wait m_num_threads==0 with wakeups, instead simply use CConditionVariable.
All values are protected by m_mutex. So we don't need the polling to wait m_num_threads==0 with wakeups, instead simply use CConditionVariable.