InitialRun will never be false, so idle_thread_num will only be decremented once when deleting threads. As the tasks progress, idle_thread_num will increase, which will result in the inability to create new threads;
Because idle_thread_num is size_t type, so it is unnecessary to judge whether it is less than 0;
Thank you very much for this project. I hope my fix is correct.
InitialRun
will never be false, soidle_thread_num
will only be decremented once when deleting threads. As the tasks progress,idle_thread_num
will increase, which will result in the inability to create new threads;idle_thread_num
is size_t type, so it is unnecessary to judge whether it is less than 0;Thank you very much for this project. I hope my fix is correct.