Searched refs:active_pollfds (Results 1 – 2 of 2) sorted by relevance
47 static struct pollfd *active_pollfds = NULL; variable92 active_pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_poll_init()93 if (!active_pollfds) { in fpm_event_poll_init()98 memset(active_pollfds, 0, sizeof(struct pollfd) * max); in fpm_event_poll_init()118 if (active_pollfds) { in fpm_event_poll_clean()119 free(active_pollfds); in fpm_event_poll_clean()120 active_pollfds = NULL; in fpm_event_poll_clean()138 memcpy(active_pollfds, pollfds, sizeof(struct pollfd) * npollfds); in fpm_event_poll_wait()142 ret = poll(active_pollfds, npollfds, timeout); in fpm_event_poll_wait()159 …if (q->ev && q->ev->index >= 0 && q->ev->index < npollfds && q->ev->fd == active_pollfds[q->ev->in… in fpm_event_poll_wait()[all …]
51 static struct pollfd *active_pollfds = NULL; variable100 active_pollfds = malloc(sizeof(struct pollfd) * max); in fpm_event_devpoll_init()101 if (!active_pollfds) { in fpm_event_devpoll_init()106 memset(active_pollfds, 0, sizeof(struct pollfd) * max); in fpm_event_devpoll_init()133 if (active_pollfds) { in fpm_event_devpoll_clean()134 free(active_pollfds); in fpm_event_devpoll_clean()135 active_pollfds = NULL; in fpm_event_devpoll_clean()153 dopoll.dp_fds = active_pollfds; in fpm_event_devpoll_wait()177 if (q->ev && q->ev->fd == active_pollfds[i].fd) { in fpm_event_devpoll_wait()
Completed in 8 milliseconds