Answers for "cpp create new thread"

C++
6

c++ create threads

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

C++ Thread

thread thread1(threadFunction);
Posted by: Guest on March-19-2022

Browse Popular Code Answers by Language