start lambda on other thread c++ code example
Example: c++ lambda thread example
std::thread t([](){
std::cout << "thread function\n";
});
t.join();
std::thread t([](){
std::cout << "thread function\n";
});
t.join();