31 auto&
watch{path_index_[path]};
41 watch = Watch{.path = path, .slot = slot, .wh = std::move(
new_wh)};
44void FileWatcher::on_inotify(
CyclTime ,
int fd,
unsigned events)
58 for (std::size_t
i{0};
i <
size;) {
60 const auto it{wd_index_.find(
event->wd)};
61 if (
it != wd_index_.end()) {
75 for (
auto it{wd_index_.cbegin()};
it != wd_index_.cend();) {
76 if (
it->first !=
it->second->wh.get().wd) {
77 it = wd_index_.erase(
it);