Expand|Select|Wrap|Line Numbers
- #include <thread>;
- class Board(){
- //Lines Later
- void getPlayerInput(){//Code NotShown}
- void playGame(){
- std::thread t1(getPlayerInput);//thread to get userInput
- }
- //Lines Later
- }
Thanks,
CodeNoob117
threading in classes instead of main
|