MennoScholten / RTS2_20220524

1 stars 1 forks source link

Implement Mutex to gameboard object #13

Closed martinreinok closed 1 year ago

martinreinok commented 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.

martinreinok commented 1 year ago

This is done, mutexes are really bad for RT behavior but for debugging purposes it should be fine for now.