Commit 9a831bdc authored by Nelson Phillips's avatar Nelson Phillips
Browse files


parent d0b57439
......@@ -87,13 +87,15 @@ Thread Sneko;
int main()
thread first (charCall); // spawn new thread that calls input()
thread second (snakePrint); // spawn new thread that calls snakePrint(0)
cout << "Press w,a,s,d to begin.";
// synchronize threads:
first.join(); // pauses until first finishes
second.join(); // pauses until second finishes
cout << " lkfnwefnwefnwdklfnd";
return 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment