| 43 | } |
| 44 | |
| 45 | void ConfigManager::WatcherCallback(void *context, DWORD, std::wstring_view fileName) |
| 46 | { |
| 47 | if (fileName.empty() || win32::IsSameFilename(fileName, CONFIG_FILE)) |
| 48 | { |
| 49 | const auto that = static_cast<ConfigManager *>(context); |
| 50 | |
| 51 | if (!that->ScheduleReload()) |
| 52 | { |
| 53 | that->Reload(); |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | void ConfigManager::TimerCallback(void *context, DWORD, DWORD) |
| 59 | { |
nothing calls this directly
no test coverage detected