Lines Matching defs:events_
80 // Sets |update_watches| to true if |events_| need to be updated.
87 // Sets |update_watches| to true if |events_| need to be updated.
94 // Sets |update_watches| to true if |events_| need to be updated.
99 // Update |events_| with the current status of the system.
128 EventVector events_;
211 // Find the kevent in |events_| that matches the kevent with the error.
212 EventVector::iterator event = events_.begin();
213 for (; event != events_.end(); ++event) {
219 if (event != events_.end()) {
248 for (; local_event != events_.end(); ++local_event) {
267 for (; local_event != events_.end(); ++local_event) {
305 for (valid = 0; valid < events_.size(); ++valid) {
306 if (!IsKeventFileDescriptorOpen(events_[valid])) {
316 int count = HANDLE_EINTR(kevent(kqueue_, &events_[0], valid, &updates[0],
322 for (; valid < events_.size(); ++valid) {
323 EventData* event_data = EventDataForKevent(events_[valid]);
324 events_[valid].ident = FileDescriptorForPath(event_data->path_);
325 if (IsKeventFileDescriptorOpen(events_[valid])) {
341 CHECK(events_.size());
346 EventVector updates(events_.size());
365 EventVector::iterator event = events_.begin();
366 for (; event != events_.end(); ++event) {
372 if (!IsKeventFileDescriptorOpen(*event) || event == events_.end()) {
373 // The event may no longer exist in |events_| because another event
374 // modified |events_| in such a way to make it invalid. For example if
438 int last_entry = EventsForPath(target_, &events_);
443 int count = HANDLE_EINTR(kevent(kqueue_, &events_[0], last_entry,
478 std::for_each(events_.begin(), events_.end(), ReleaseEvent);
479 events_.clear();