Skip to content

Instantly share code, notes, and snippets.

@cdacamar
Created July 15, 2016 04:31
Show Gist options
  • Save cdacamar/95ee0b0f300e2eb906817554f619922a to your computer and use it in GitHub Desktop.
Save cdacamar/95ee0b0f300e2eb906817554f619922a to your computer and use it in GitHub Desktop.
void do_thing();
std::thread t1{[] { std::cout<<"Hello, World!\n"; }};
std::thread t2{do_thing};
t1.join();
t2.join();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment