Skip to content

Commit 65cb87c

Browse files
committed
Revert "Wait on threadpools when saving/loading"
This reverts commit f24a647.
1 parent 1d45d5f commit 65cb87c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Source/Managers/ActivityMan.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ bool ActivityMan::SaveCurrentGame(const std::string& fileName) {
7676
m_SaveGameTask.wait();
7777
m_SaveGameTask = BS::multi_future<void>();
7878

79-
// Might not be strictly necessary?
80-
g_ThreadMan.GetPriorityThreadPool().wait_for_tasks();
81-
g_ThreadMan.GetBackgroundThreadPool().wait_for_tasks();
82-
8379
Scene* scene = g_SceneMan.GetScene();
8480
GAScripted* activity = dynamic_cast<GAScripted*>(GetActivity());
8581

@@ -155,9 +151,6 @@ bool ActivityMan::SaveCurrentGame(const std::string& fileName) {
155151
bool ActivityMan::LoadAndLaunchGame(const std::string& fileName) {
156152
m_SaveGameTask.wait();
157153

158-
g_ThreadMan.GetPriorityThreadPool().wait_for_tasks();
159-
g_ThreadMan.GetBackgroundThreadPool().wait_for_tasks();
160-
161154
std::string saveFilePath = g_PresetMan.GetFullModulePath(c_UserScriptedSavesModuleName) + "/" + fileName + "/Save.ini";
162155

163156
if (!std::filesystem::exists(saveFilePath)) {

0 commit comments

Comments
 (0)