Geek for Forge
Welcome to the official Geek Forge blog
Tuesday, July 31, 2012
thread sample
#include <iostream>
#include <thread>
void threadFun()
{
std::cout << "Hello thread\n";
}
int main()
{
std::thread th(&threadFun);
std::cout << "Hello from main\n";
th.join();
return 0;
}
Newer Posts
Home
Subscribe to:
Posts (Atom)