X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=9923ef1dbc1fdf5ce2d6493dc05662d599900e29;hb=b69d9ee3f720ba04bbc22eb24203123f4b79707f;hp=8088ff76c94ce36418d7307347ab16d211ae350e;hpb=7d5b8fcf7724a66f191cae45d858a1b3d63c2bce;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 8088ff76..9923ef1d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2129,13 +2129,11 @@ split_point_start: // At split points actual search starts from here } // namespace -// Little helper used by idle_loop() to check that all the slaves of a -// master thread have finished searching. +// Little helper used by idle_loop() to check that all the slave threads of a +// split point have finished searching. static bool all_slaves_finished(SplitPoint* sp) { - assert(sp); - for (int i = 0; i < Threads.size(); i++) if (sp->is_slave[i]) return false;