Closed martinreinok closed 1 year ago
std::mutex gameBoardMutex;
The gameboard is accessed by both, main thread and gameLogicThread. Occasionally they are accessed at the same time or out of sync, might cause null pointer exceptions.
This is done, mutexes are really bad for RT behavior but for debugging purposes it should be fine for now.
std::mutex gameBoardMutex;
The gameboard is accessed by both, main thread and gameLogicThread. Occasionally they are accessed at the same time or out of sync, might cause null pointer exceptions.