fix bug kéo thả của loop
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2026-06-13 14:20:23 +07:00
parent 9776e29d7d
commit 1716351016
6 changed files with 190 additions and 127 deletions

View File

@@ -31,6 +31,8 @@ public:
bool resume(std::string& err);
private:
enum class LoopControl { None, Break, Continue };
std::filesystem::path queue_path_;
mutable std::recursive_mutex mu_;
nlohmann::json queue_;
@@ -47,10 +49,10 @@ private:
void startWorkerIfNeeded();
void workerLoop();
void runMissionActions(nlohmann::json& entry);
void executeActionsUnlocked(const nlohmann::json& actions,
const nlohmann::json& parameters,
nlohmann::json& log,
int loop_depth);
LoopControl executeActionsUnlocked(const nlohmann::json& actions,
const nlohmann::json& parameters,
nlohmann::json& log,
int loop_depth);
void sleepMs(int ms);
void setRunnerState(const std::string& state, const std::string& message = "");
void insertByPriorityUnlocked(nlohmann::json& entry);