search for: io_rw

Displaying 1 result from an estimated 1 matches for "io_rw".

2004 Aug 30
0
[PATCH] [RFC] epoll based ioloop handler (now with patch)
...event.events = epoll_event_mask(list); + + op = (list->count == 0) ? EPOLL_CTL_DEL : EPOLL_CTL_MOD; + + ret = epoll_ctl(data->epfd, op, io->fd, &event); + if ((ret < 0) && (errno != EBADF)) + i_warning("epoll_ctl() : %m"); + + data->events_pos--; +} + +#define IO_RW (IO_READ | IO_WRITE) + +void io_loop_handler_run(struct ioloop *ioloop) +{ + struct ioloop_handler_data *data = ioloop->handler_data; + struct epoll_event *event; + struct io_list *list; + struct io *io; + struct timeval tv; + unsigned int t_id; + int msecs, ret, i, call; + + /* get the t...