ev->fd = -1;
LIBXL_LIST_FOREACH(poller, &CTX->pollers_fds_changed, fds_changed_entry)
- poller->fds_changed = 1;
+ poller->fds_deregistered = 1;
out:
CTX_UNLOCK;
*nfds_io = used;
- poller->fds_changed = 0;
+ poller->fds_deregistered = 0;
libxl__ev_time *etime = LIBXL_TAILQ_FIRST(&CTX->etimes);
if (etime) {
/* again, stale slot entry */
continue;
- assert(poller->fds_changed || !(fds[slot].revents & POLLNVAL));
+ assert(poller->fds_deregistered || !(fds[slot].revents & POLLNVAL));
/* we mask in case requested events have changed */
int slot_revents = fds[slot].revents & events;
int rc;
p->fd_polls = 0;
p->fd_rindices = 0;
- p->fds_changed = 0;
+ p->fds_deregistered = 0;
rc = libxl__pipe_nonblock(CTX, p->wakeup_pipe);
if (rc) goto out;
/*
* We also use the poller to record whether any fds have been
* deregistered since we entered poll. Each poller which is not
- * idle is on the list pollers_fds_changed. fds_changed is
+ * idle is on the list pollers_fds_changed. fds_deregistered is
* cleared by beforepoll, and tested by afterpoll. Whenever an fd
- * event is deregistered, we set the fds_changed of all non-idle
+ * event is deregistered, we set the fds_deregistered of all non-idle
* pollers. So afterpoll can tell whether any POLLNVAL is
* plausibly due to an fd being closed and reopened.
*/
LIBXL_LIST_ENTRY(libxl__poller) fds_changed_entry;
- bool fds_changed;
+ bool fds_deregistered;
};
struct libxl__gc {