update mission cancel
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2026-06-15 10:30:00 +07:00
parent 6cc51a35c4
commit 4b372100eb
13 changed files with 922 additions and 134 deletions

View File

@@ -29,6 +29,7 @@ public:
bool reorder(const nlohmann::json& ordered_ids, std::string& err);
bool pause(std::string& err);
bool resume(std::string& err);
bool cancel(std::string& err);
private:
enum class LoopControl { None, Break, Continue };
@@ -42,6 +43,7 @@ private:
std::atomic<bool> stop_{false};
std::atomic<bool> wake_{false};
std::atomic<bool> paused_{false};
std::atomic<bool> cancel_{false};
void load();
void saveUnlocked() const;