The second parameter is default nullptr and will be passed to the
function call as the second parameter as a means of providing
context (useful when the function is not a lambda function). The
- third parameter is default 1 (not multi-threaded). If the third
+ third parameter is default 1 (not multi-threaded). If the third
parameter threadCount is set to a value greater than 1, then
threadCount threads will be used. Note that multi-threading is
based on splitting the task of calling the function across sections
std::make_tuple(
signatureBitset,
context,
- [function, helper, this]
+ [function, helper, this]
(std::size_t threadCount,
std::vector<std::size_t> matching,
void* context)
threads[i].join();
}
}
-
+
// call functions on matching entities
EC::Meta::forEachDoubleTuple(
EC::Meta::Morph<SigList, std::tuple<> >{},
threads[i].join();
}
}
-
+
// call functions on matching entities
EC::Meta::forEachDoubleTuple(
EC::Meta::Morph<SigList, std::tuple<> >{},