| 61 | } |
| 62 | |
| 63 | void ConfigManager::disableAutoSave() { |
| 64 | if (!autoSaveEnabled) { return; } |
| 65 | { |
| 66 | std::lock_guard<std::mutex> lock(termMtx); |
| 67 | autoSaveEnabled = false; |
| 68 | termFlag = true; |
| 69 | } |
| 70 | termCond.notify_one(); |
| 71 | if (autoSaveThread.joinable()) { autoSaveThread.join(); } |
| 72 | } |
| 73 | |
| 74 | void ConfigManager::acquire() { |
| 75 | mtx.lock(); |
no outgoing calls
no test coverage detected