aboutsummaryrefslogtreecommitdiff
path: root/launcher/tasks/ConcurrentTask.h
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-04-07 13:01:45 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-01 10:48:00 -0700
commitd7032d975cb71bbf69d1dcd6a916db85ceb7619c (patch)
treeb1165e670b6d0a79406d2480071ae470e7bdd66f /launcher/tasks/ConcurrentTask.h
parent96decbac27b364e0ffdcb20c40b08a79b827be00 (diff)
downloadPrismLauncher-d7032d975cb71bbf69d1dcd6a916db85ceb7619c.tar.gz
PrismLauncher-d7032d975cb71bbf69d1dcd6a916db85ceb7619c.tar.bz2
PrismLauncher-d7032d975cb71bbf69d1dcd6a916db85ceb7619c.zip
fix: no need to loop all sub tasks
pathc by flowin Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/tasks/ConcurrentTask.h')
-rw-r--r--launcher/tasks/ConcurrentTask.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/tasks/ConcurrentTask.h b/launcher/tasks/ConcurrentTask.h
index 974e8d4d..284fa345 100644
--- a/launcher/tasks/ConcurrentTask.h
+++ b/launcher/tasks/ConcurrentTask.h
@@ -83,7 +83,8 @@ protected:
// NOTE: This is not thread-safe.
[[nodiscard]] unsigned int totalSize() const { return m_queue.size() + m_doing.size() + m_done.size(); }
- void updateStepProgress();
+ enum class Operation { ADDED, REMOVED, CHANGED };
+ void updateStepProgress(TaskStepProgress const& changed_progress, Operation);
virtual void updateState();