| 77 | } |
| 78 | |
| 79 | void PythonScriptManagerState::clearErrors() { |
| 80 | std::uint64_t generation = 0; |
| 81 | { |
| 82 | std::lock_guard lock(mutex_); |
| 83 | bool changed = false; |
| 84 | for (auto& s : scripts_) { |
| 85 | if (s.has_error || !s.error_message.empty()) { |
| 86 | s.has_error = false; |
| 87 | s.error_message.clear(); |
| 88 | changed = true; |
| 89 | } |
| 90 | } |
| 91 | if (changed) { |
| 92 | generation = ++generation_; |
| 93 | } |
| 94 | } |
| 95 | publishScriptsGeneration(generation); |
| 96 | } |
| 97 | |
| 98 | void PythonScriptManagerState::clear() { |
| 99 | std::uint64_t generation = 0; |
no test coverage detected