Add ch02 C++ threading equivalents

This commit is contained in:
Bassem Girgis
2018-10-18 14:55:48 -05:00
parent 7b46aaf5f9
commit 3005349ac0
3 changed files with 42 additions and 0 deletions

16
src/ch02/hello_cpp.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include <iostream>
#include <thread>
void
hello()
{
std::cout << "Hello World\n";
}
int
main(int argc, char* argv[])
{
std::thread t(hello);
t.join();
}