10using namespace Microsoft::VisualStudio::CppUnitTestFramework;
15 constexpr size_t pool_capacity = 50;
22 using worker_t = unique_ptr<int>;
26 for (
auto n = thread::hardware_concurrency(); n--; ) {
27 workers.push_back(thread([](_Inout_ pool_t& pool)
29 for (
size_t n = 10000; n--; ) {
30 worker_t el = pool.pop();
33 pool.push(std::move(el));
38 for (
auto& w : workers)
Per-NUMA pool of items.
Definition pool.hpp:24