Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ put a function in a other thread

void task1(std::string msg)
{
    std::cout << "task1 says: " << msg;
}
std::thread t1(task1, "Hello");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #put #function #thread
ADD COMMENT
Topic
Name
3+7 =