• Home
  • Raw
  • Download

Lines Matching refs:watch

60   void RemoveWatch(Watch watch, FilePathWatcherImpl* watcher);
136 : watch(InotifyReader::kInvalidWatch), in WatchEntry()
139 InotifyReader::Watch watch; member
163 void TrackWatchForRecursion(InotifyReader::Watch watch, const FilePath& path);
271 Watch watch = inotify_add_watch(inotify_fd_, path.value().c_str(), in AddWatch() local
276 if (watch == kInvalidWatch) in AddWatch()
279 watchers_[watch].insert(watcher); in AddWatch()
281 return watch; in AddWatch()
284 void InotifyReader::RemoveWatch(Watch watch, FilePathWatcherImpl* watcher) { in RemoveWatch() argument
285 if (!valid_ || (watch == kInvalidWatch)) in RemoveWatch()
290 watchers_[watch].erase(watcher); in RemoveWatch()
292 if (watchers_[watch].empty()) { in RemoveWatch()
293 watchers_.erase(watch); in RemoveWatch()
294 inotify_rm_watch(inotify_fd_, watch); in RemoveWatch()
355 if (fired_watch != watch_entry.watch) in OnFilePathChangedOnOriginSequence()
461 g_inotify_reader.Get().RemoveWatch(watches_[i].watch, this); in Cancel()
477 InotifyReader::Watch old_watch = watch_entry.watch; in UpdateWatches()
478 watch_entry.watch = InotifyReader::kInvalidWatch; in UpdateWatches()
480 watch_entry.watch = g_inotify_reader.Get().AddWatch(path, this); in UpdateWatches()
481 if (watch_entry.watch == InotifyReader::kInvalidWatch) { in UpdateWatches()
489 if (old_watch != watch_entry.watch) in UpdateWatches()
514 fired_watch != watches_.back().watch) { in UpdateRecursiveWatches()
561 InotifyReader::Watch watch = in UpdateRecursiveWatchesForPath() local
563 TrackWatchForRecursion(watch, current); in UpdateRecursiveWatchesForPath()
568 InotifyReader::Watch watch = in UpdateRecursiveWatchesForPath() local
570 if (watch != old_watch) { in UpdateRecursiveWatchesForPath()
574 TrackWatchForRecursion(watch, current); in UpdateRecursiveWatchesForPath()
580 void FilePathWatcherImpl::TrackWatchForRecursion(InotifyReader::Watch watch, in TrackWatchForRecursion() argument
586 if (watch == InotifyReader::kInvalidWatch) in TrackWatchForRecursion()
589 DCHECK(!ContainsKey(recursive_paths_by_watch_, watch)); in TrackWatchForRecursion()
591 recursive_paths_by_watch_[watch] = path; in TrackWatchForRecursion()
592 recursive_watches_by_path_[path] = watch; in TrackWatchForRecursion()
611 DCHECK_EQ(InotifyReader::kInvalidWatch, watch_entry->watch); in AddWatchForBrokenSymlink()
623 InotifyReader::Watch watch = in AddWatchForBrokenSymlink() local
625 if (watch == InotifyReader::kInvalidWatch) { in AddWatchForBrokenSymlink()
632 watch_entry->watch = watch; in AddWatchForBrokenSymlink()