Lines Matching full:event

88   std::queue<DirectoryWatcher::Event> Events;
91 void push_back(const DirectoryWatcher::Event::EventKind K, in push_back()
101 // event to return.
102 DirectoryWatcher::Event pop_front_blocking() { in pop_front_blocking()
108 DirectoryWatcher::Event Front = Events.front(); in pop_front_blocking()
121 std::function<void(llvm::ArrayRef<Event>, bool)> Receiver,
144 std::function<void(llvm::ArrayRef<Event>, bool)> Receiver;
163 // Push event of WatcherGotInvalidated kind to the Queue to stop the loop.
170 Queue.push_back(DirectoryWatcher::Event::EventKind::WatcherGotInvalidated, in StopWork()
237 // event for stopping, it must be an inotify event ready for reading. in InotifyPollingLoop()
247 struct inotify_event *Event = reinterpret_cast<struct inotify_event *>(P); in InotifyPollingLoop() local
248 P += sizeof(struct inotify_event) + Event->len; in InotifyPollingLoop()
250 if (Event->mask & (IN_CREATE | IN_MODIFY | IN_MOVED_TO | IN_DELETE) && in InotifyPollingLoop()
251 Event->len <= 0) { in InotifyPollingLoop()
257 if (Event->mask & (IN_CREATE | IN_MOVED_TO | IN_MODIFY)) { in InotifyPollingLoop()
258 Queue.push_back(DirectoryWatcher::Event::EventKind::Modified, in InotifyPollingLoop()
259 Event->name); in InotifyPollingLoop()
260 } else if (Event->mask & (IN_DELETE | IN_MOVED_FROM)) { in InotifyPollingLoop()
261 Queue.push_back(DirectoryWatcher::Event::EventKind::Removed, in InotifyPollingLoop()
262 Event->name); in InotifyPollingLoop()
263 } else if (Event->mask & (IN_DELETE_SELF | IN_MOVE_SELF)) { in InotifyPollingLoop()
264 Queue.push_back(DirectoryWatcher::Event::EventKind::WatchedDirRemoved, in InotifyPollingLoop()
268 } else if (Event->mask & IN_IGNORED) { in InotifyPollingLoop()
273 llvm_unreachable("Unknown event type."); in InotifyPollingLoop()
287 DirectoryWatcher::Event Event = this->Queue.pop_front_blocking(); in EventReceivingLoop() local
288 this->Receiver(Event, false); in EventReceivingLoop()
289 if (Event.Kind == in EventReceivingLoop()
290 DirectoryWatcher::Event::EventKind::WatcherGotInvalidated) { in EventReceivingLoop()
299 std::function<void(llvm::ArrayRef<Event>, bool)> Receiver, in DirectoryWatcherLinux() argument
327 std::function<void(llvm::ArrayRef<DirectoryWatcher::Event>, bool)> Receiver, in create() argument