fork(1) download
  1. #include <thread>
  2.  
  3. void f(const int &x) {}
  4.  
  5. int main() {
  6. int x = 1;
  7. std::thread t1(f, x);
  8. t1.join();
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0s 4788KB
stdin
Standard input is empty
stdout
Standard output is empty