diff --git a/src/search.cpp b/src/search.cpp index 13f333d9..4fd1c03d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2768,6 +2768,9 @@ namespace { cout << "Failed to create thread number " << i << endl; Application::exit_with_failure(); } + + // Wait until the thread has finished launching and is gone to sleep + while (threads[i].state != THREAD_SLEEPING); } }