Answers for "c++ put a function in a other thread"

C++
0

c++ put a function in a other thread

void task1(std::string msg)
{
    std::cout << "task1 says: " << msg;
}
std::thread t1(task1, "Hello");
Posted by: Guest on March-20-2021

Code answers related to "c++ put a function in a other thread"

Browse Popular Code Answers by Language