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:
Marco Costalba
2011-08-09 21:08:55 +01:00
parent 7d5b8fcf77
commit b69d9ee3f7
2 changed files with 12 additions and 15 deletions

View 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;