mirror of
https://github.com/mmueller41/mxtasking.git
synced 2026-01-21 12:42:57 +01:00
Initialize core heaps for the total amount of CPU cores the machine has.
This commit is contained in:
@@ -296,7 +296,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto core_id : core_set)
|
for (auto core_id = 0; core_id < system::topology::count_cores(); ++core_id)
|
||||||
{
|
{
|
||||||
const auto node_id = system::topology::node_id(core_id);
|
const auto node_id = system::topology::node_id(core_id);
|
||||||
_core_heaps[core_id] = CoreHeap<S>{&_processor_heaps[node_id]};
|
_core_heaps[core_id] = CoreHeap<S>{&_processor_heaps[node_id]};
|
||||||
|
|||||||
Reference in New Issue
Block a user