Answers for "unknown amount of threads cpp"

C++
0

unknown amount of threads cpp

#inculde <iostream>
#include <threads>
#include <vecotr>

std::vector<std::thread*> threads;

for(int i = 0; i < x; i++)
{
  threads.push_back(new std::thread(func));
}
Posted by: Guest on January-17-2021

Browse Popular Code Answers by Language