Home
last modified time | relevance | path

Searched refs:watchers_ (Results 1 – 5 of 5) sorted by relevance

/external/libmojo/mojo/edk/system/
Dwatcher_set.cc18 for (const auto& entry : watchers_) in NotifyForStateChange()
23 for (const auto& entry : watchers_) in NotifyClosed()
31 auto it = watchers_.find(context); in Add()
32 if (it != watchers_.end()) in Add()
39 watchers_.insert(std::make_pair(context, watcher)); in Add()
47 auto it = watchers_.find(context); in Remove()
48 if (it == watchers_.end()) in Remove()
52 watchers_.erase(it); in Remove()
Dawakable_list.cc42 watchers_.NotifyForStateChange(state); in AwakeForStateChange()
51 watchers_.NotifyClosed(); in CancelAll()
79 return watchers_.Add(signals, callback, context, current_state); in AddWatcher()
83 return watchers_.Remove(context); in RemoveWatcher()
Dwatcher_set.h46 std::unordered_map<uintptr_t, scoped_refptr<Watcher>> watchers_;
Dawakable_list.h64 WatcherSet watchers_; variable
/external/libchrome/base/files/
Dfile_path_watcher_linux.cc72 hash_map<Watch, WatcherSet> watchers_; member in base::__anon176e1fbc0111::InotifyReader
308 watchers_[watch].insert(watcher); in AddWatch()
319 watchers_[watch].erase(watcher); in RemoveWatch()
321 if (watchers_[watch].empty()) { in RemoveWatch()
322 watchers_.erase(watch); in RemoveWatch()
334 for (WatcherSet::iterator watcher = watchers_[event->wd].begin(); in OnInotifyEvent()
335 watcher != watchers_[event->wd].end(); in OnInotifyEvent()