mirror of
https://github.com/Kbz-8/42_vox.git
synced 2026-01-11 14:43:34 +00:00
fixing some data races
This commit is contained in:
@@ -16,7 +16,7 @@ class ThreadPool
|
||||
inline void WaitForAllTasks() const
|
||||
{
|
||||
using namespace std::chrono_literals;
|
||||
for(; m_waiting_count != m_concurency;)
|
||||
for(; m_waiting_count != m_concurency && !m_tasks.IsEmpty();)
|
||||
std::this_thread::sleep_for(10ms);
|
||||
}
|
||||
~ThreadPool();
|
||||
|
||||
Reference in New Issue
Block a user