mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
Use component's heap for allocation.
This commit is contained in:
@@ -72,7 +72,7 @@ public:
|
||||
_threads.insert(&thread->_list_element);
|
||||
}
|
||||
/* Test, whether unique_ptrs work */
|
||||
auto unique_thread = std::make_unique<Test_thread>(env, 255, env.cpu().affinity_space().location_of_index(0));
|
||||
auto unique_thread = std::unique_ptr<Test_thread>(new (_heap) Test_thread(env, 255, env.cpu().affinity_space().location_of_index(0)));
|
||||
unique_thread->start();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user