Dong Fang <yp.fangdong@gmail.com> Martin Sustrik <sustrik@250bpm.com>
xpoll_wait - wait for an I/O event on an xpoll instance
#include <xio/poll.h>
int xpoll_wait(int pollfd, struct xpoll_event *events, int n, u32 timeout);
see more details on xpoll_ctl[3]
When successful, xpoll_wait() returns the number of xsocket ready for the requested I/O, or zero if no xsocket ready during the requested timeout milliseconds. When an error occurs, epoll_wait() returns -1 and errno is set appropriately.
maxevents is less than or equal to zero.
Dong Fang <yp.fangdong@gmail.com> Martin Sustrik <sustrik@250bpm.com>