Fix for crash when exiting whilst NewGRF scan still in progress

See: https://github.com/OpenTTD/OpenTTD/issues/8760
This commit is contained in:
Jonathan G Rennison
2021-03-01 18:04:12 +00:00
parent f183ded9fe
commit 0a31a3b923
5 changed files with 33 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ static inline bool UseThreadedModelProgress()
bool IsFirstModalProgressLoop();
void SetModalProgress(bool state);
void SleepWhileModalProgress(int milliseconds);
void WaitUntilModalProgressCompleted();
extern std::mutex _modal_progress_work_mutex;
extern std::mutex _modal_progress_paint_mutex;