Lely core libraries
2.3.4
|
Go to the documentation of this file.
22 #ifndef LELY_IO2_POSIX_POLL_H_
23 #define LELY_IO2_POSIX_POLL_H_
65 #define IO_POLL_WATCH_INIT(func) \
67 (func), -1, RBNODE_INIT, 0 \
70 void *io_poll_alloc(
void);
71 void io_poll_free(
void *ptr);
131 #endif // !LELY_IO2_POSIX_POLL_H_
void io_poll_destroy(io_poll_t *poll)
Destroys an I/O polling interface.
const struct ev_poll_vtbl *const ev_poll_t
The abstract polling interface.
An object representing a file descriptor being monitored for I/O events.
ev_poll_t * io_poll_get_poll(const io_poll_t *poll)
Returns a pointer to the ev_poll_t instance corresponding to the I/O polling instance.
io_poll_watch_func_t * func
A pointer to the function to be invoked when an I/O event occurs.
An I/O polling interface.
int io_poll_watch(io_poll_t *poll, io_handle_t handle, struct io_event *event, int keep)
Registers an I/O device with an I/O polling interface and instructs it to watch for certain events.
io_ctx_t * io_poll_get_ctx(const io_poll_t *poll)
Returns a pointer to the I/O context with which the I/O polling instance is registered.
A node in a red-black tree.
io_poll_t * io_poll_create(void)
Creates a new I/O polling interface.
void io_poll_watch_func_t(struct io_poll_watch *watch, int events)
The type of function invoked by an I/O polling instance (through ev_poll_wait()) to report I/O events...