mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
Genode's stdcxx doesn't support std::make_unique().
This commit is contained in:
@@ -35,11 +35,11 @@ int main(void) {
|
||||
Genode::log("Let's start some threads");
|
||||
|
||||
std::vector<Posix_playground::Chrono_thread*> thread_objs(4);
|
||||
std::vector<std::unique_ptr<std::thread>> thread_list(4);
|
||||
std::vector<std::thread*> thread_list(4);
|
||||
|
||||
for (std::uint16_t i = 0; i < 4; i++) {
|
||||
thread_objs[i] = new Posix_playground::Chrono_thread(i);
|
||||
auto thread = std::make_unique<std::thread>([&]
|
||||
auto thread = new std::thread([&]
|
||||
{ thread_objs[i]->execute(); });
|
||||
thread_list.push_back(thread);
|
||||
thread->join();
|
||||
|
||||
Reference in New Issue
Block a user