Crashlog: Update thread/lock handling to match GameLoop changes

This commit is contained in:
Jonathan G Rennison
2021-04-06 03:53:01 +01:00
parent d452517c66
commit 63ddf7f587
10 changed files with 72 additions and 33 deletions

View File

@@ -212,6 +212,8 @@ public:
bool unlock; ///< Stores if the lock did anything that has to be undone.
};
static bool EmergencyAcquireGameLock(uint tries, uint delay_ms);
protected:
const uint ALLOWED_DRIFT = 5; ///< How many times videodriver can miss deadlines without it being overly compensated.
@@ -322,7 +324,7 @@ protected:
bool is_game_threaded;
std::thread game_thread;
std::mutex game_state_mutex;
std::recursive_mutex game_state_mutex;
std::mutex game_thread_wait_mutex;
static void GameThreadThunk(VideoDriver *drv);