Answers for "how to create a thread class in c++"

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

Code answers related to "how to create a thread class in c++"

Browse Popular Code Answers by Language