diff options
| author | Liam <byteslice@airmail.cc> | 2023-10-12 21:07:49 -0400 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2023-10-12 21:07:49 -0400 |
| commit | faa6c35e78dd0c843de15e08e91211625bb1df67 (patch) | |
| tree | d9197e8b25c0c99b627655a1c104eb4eb694e5f2 /src/yuzu/game_list_worker.h | |
| parent | 519c12da1566e03b87cd1066999ed673ade30608 (diff) | |
qt: ensure worker cancellation is complete before clearing
Diffstat (limited to 'src/yuzu/game_list_worker.h')
| -rw-r--r-- | src/yuzu/game_list_worker.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/yuzu/game_list_worker.h b/src/yuzu/game_list_worker.h index 2bb0a0cb6..54dc05e30 100644 --- a/src/yuzu/game_list_worker.h +++ b/src/yuzu/game_list_worker.h @@ -12,6 +12,7 @@ #include <QRunnable> #include <QString> +#include "common/thread.h" #include "yuzu/compatibility_list.h" #include "yuzu/play_time_manager.h" @@ -82,7 +83,9 @@ private: const PlayTime::PlayTimeManager& play_time_manager; QStringList watch_list; - std::atomic_bool stop_processing; + + Common::Event processing_completed; + std::atomic_bool stop_requested = false; Core::System& system; }; |
