The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
251 B

#include<thread>
#include<cstdio>
void main_func() {
printf("Printing from a thread.\n");
}
int main(int, char**) {
printf("Starting thread.\n");
std::thread th(main_func);
th.join();
printf("Stopped thread.\n");
return 0;
}