Skip to content

Instantly share code, notes, and snippets.

@marionette-of-u
Created December 8, 2012 11:49
Show Gist options
  • Select an option

  • Save marionette-of-u/4239961 to your computer and use it in GitHub Desktop.

Select an option

Save marionette-of-u/4239961 to your computer and use it in GitHub Desktop.
test std::thread
#include <thread>
std::thread a, b;
void f(); void g(); void h();
void f(){ a = std::thread(g); }
void g(){ b = std::thread(h); }
void h(){}
int main(){
f();
a.join();
b.join();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment