DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+7 =
Submit