X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.cpp;h=716d13e0695b9c108ba142879c365f573e027a73;hp=53e78595045548bed917e75132dfc084c60ed88a;hb=340e9ea5096fb1c8e4a0914827f1af1d30075039;hpb=7b6fa353a3858b092e1a43ef69b3035cb5d3b5c0;ds=sidebyside diff --git a/src/tt.cpp b/src/tt.cpp index 53e78595..716d13e0 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -84,7 +84,7 @@ void TranspositionTable::clear() { for (size_t idx = 0; idx < Options["Threads"]; idx++) { - threads.push_back(std::thread([this, idx]() { + threads.emplace_back([this, idx]() { // Thread binding gives faster search on systems with a first-touch policy if (Options["Threads"] > 8) @@ -97,7 +97,7 @@ void TranspositionTable::clear() { stride : clusterCount - start; std::memset(&table[start], 0, len * sizeof(Cluster)); - })); + }); } for (std::thread& th: threads)