mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Don't need pthread_detach() after pthread_join()
Spotted by Joona and verified with Valgrind. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user