]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Don't need pthread_detach() after pthread_join()
[stockfish] / src / search.cpp
index 8088ff76c94ce36418d7307347ab16d211ae350e..9923ef1dbc1fdf5ce2d6493dc05662d599900e29 100644 (file)
@@ -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;