int size; /**< maximum number of elements in array */
} devpoll_update;
-
/* STATIC VARIABLES */
static int devpoll_fd; /**< handle to /dev/poll device */
static int max_poll_time = 1000; /**< maximum milliseconds to spend in poll */
/* PROTOTYPES */
static void commDevPollRegisterWithCacheManager(void);
-
/* PRIVATE FUNCTIONS */
/** \brief Write batched file descriptor event changes to poll device
*
devpoll_update.pfds[devpoll_update.cur].revents = 0;
}
-
static void commIncomingStats(StoreEntry *sentry)
{
storeAppendPrintf(sentry, "Total number of devpoll loops: %ld\n", statCounter.select_loops);
statCounter.select_fds_hist.dump(sentry, statHistIntDumper);
}
-
static void
commDevPollRegisterWithCacheManager(void)
{
);
}
-
/* PUBLIC FUNCTIONS */
/** \brief Initialise /dev/poll support
F->timeout = squid_curtime + timeout;
}
-
/** \brief Clear polling of file handle (both read and write)
*
* @param fd file descriptor to clear polling on
SetSelect(fd, COMM_SELECT_READ, NULL, NULL, 0);
}
-
/** \brief Do poll and trigger callback functions as appropriate
*
* Check all connections for new connections and input data that is to be