X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=13f333d9fc5a95511f133ee15f5d0a681e095f16;hp=2351dd17fbb87043fdd88b1888ea7fba3ad11d16;hb=57340c109b0ddd8764bf73dfa3bfe2bbe7928b59;hpb=29fb38976036d6691f6cbdf8990245ed74d79be2 diff --git a/src/search.cpp b/src/search.cpp index 2351dd17..13f333d9 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2768,9 +2768,6 @@ 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); } } @@ -2999,9 +2996,6 @@ namespace { if (ActiveThreads == 1) return; - for (int i = 1; i < ActiveThreads; i++) - assert(threads[i].state == THREAD_SLEEPING); - #if !defined(_MSC_VER) pthread_mutex_lock(&WaitLock); pthread_cond_broadcast(&WaitCond);