Lines Matching refs:Event
87 std::queue<DirectoryWatcher::Event> Events;
90 void push_back(const DirectoryWatcher::Event::EventKind K, in push_back()
101 DirectoryWatcher::Event pop_front_blocking() { in pop_front_blocking()
107 DirectoryWatcher::Event Front = Events.front(); in pop_front_blocking()
120 std::function<void(llvm::ArrayRef<Event>, bool)> Receiver,
143 std::function<void(llvm::ArrayRef<Event>, bool)> Receiver;
169 Queue.push_back(DirectoryWatcher::Event::EventKind::WatcherGotInvalidated, in StopWork()
246 struct inotify_event *Event = reinterpret_cast<struct inotify_event *>(P); in InotifyPollingLoop() local
247 P += sizeof(struct inotify_event) + Event->len; in InotifyPollingLoop()
249 if (Event->mask & (IN_CREATE | IN_MODIFY | IN_MOVED_TO | IN_DELETE) && in InotifyPollingLoop()
250 Event->len <= 0) { in InotifyPollingLoop()
256 if (Event->mask & (IN_CREATE | IN_MOVED_TO | IN_MODIFY)) { in InotifyPollingLoop()
257 Queue.push_back(DirectoryWatcher::Event::EventKind::Modified, in InotifyPollingLoop()
258 Event->name); in InotifyPollingLoop()
259 } else if (Event->mask & (IN_DELETE | IN_MOVED_FROM)) { in InotifyPollingLoop()
260 Queue.push_back(DirectoryWatcher::Event::EventKind::Removed, in InotifyPollingLoop()
261 Event->name); in InotifyPollingLoop()
262 } else if (Event->mask & (IN_DELETE_SELF | IN_MOVE_SELF)) { in InotifyPollingLoop()
263 Queue.push_back(DirectoryWatcher::Event::EventKind::WatchedDirRemoved, in InotifyPollingLoop()
267 } else if (Event->mask & IN_IGNORED) { in InotifyPollingLoop()
286 DirectoryWatcher::Event Event = this->Queue.pop_front_blocking(); in EventReceivingLoop() local
287 this->Receiver(Event, false); in EventReceivingLoop()
288 if (Event.Kind == in EventReceivingLoop()
289 DirectoryWatcher::Event::EventKind::WatcherGotInvalidated) { in EventReceivingLoop()
298 std::function<void(llvm::ArrayRef<Event>, bool)> Receiver, in DirectoryWatcherLinux() argument
326 std::function<void(llvm::ArrayRef<DirectoryWatcher::Event>, bool)> Receiver, in create() argument