+ const size_t stride = clusterCount / Options["Threads"];
+ std::vector<std::thread> threads;
+ for (size_t idx = 0; idx < Options["Threads"]; idx++)
+ {
+ const size_t start = stride * idx,
+ len = idx != Options["Threads"] - 1 ?
+ stride :
+ clusterCount - start;
+ threads.push_back(std::thread([this, idx, start, len]() {
+ if (Options["Threads"] >= 8)
+ WinProcGroup::bindThisThread(idx);
+ std::memset(&table[start], 0, len * sizeof(Cluster));
+ }));
+ }