Answers for "c++ create threads"

C++
4

c++ create threads

#include <thread>
void foo() 
{
  // do stuff...
}
int main() 
{
  std::thread first (foo);
  first.join();
}
Posted by: Guest on July-07-2020

Browse Popular Code Answers by Language