22 #ifndef LELY_IO2_POSIX_FD_LOOP_H_
23 #define LELY_IO2_POSIX_FD_LOOP_H_
35 void *io_fd_loop_alloc(
void);
36 void io_fd_loop_free(
void *ptr);
const struct ev_poll_vtbl *const ev_poll_t
The abstract polling interface.
This header file is part of the event library; it contains the abstract task executor interface.
void io_fd_loop_restart(io_fd_loop_t *loop)
Restarts a file descriptor event loop.
void io_fd_loop_destroy(io_fd_loop_t *loop)
Destroys a file descriptor event loop.
void io_fd_loop_stop(io_fd_loop_t *loop)
Stops the file descriptor event loop.
int io_fd_loop_get_fd(const io_fd_loop_t *loop)
Returns the file descriptor corresponding to the event loop.
io_fd_loop_t * io_fd_loop_create(io_poll_t *poll)
Creates a new file descriptor event loop.
ev_poll_t * io_fd_loop_get_poll(const io_fd_loop_t *loop)
Returns a pointer to the polling instance used by the event loop.
ev_exec_t * io_fd_loop_get_exec(const io_fd_loop_t *loop)
Returns a pointer to the executor corresponding to the event loop.
int io_fd_loop_stopped(io_fd_loop_t *loop)
Returns 1 if the file descriptor event loop is stopped, and 0 if not.
size_t io_fd_loop_run(io_fd_loop_t *loop)
Equivalent to.
const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
This header file is part of the I/O library; it contains the I/O polling declarations for POSIX platf...
An I/O polling interface.
A file descriptor event loop.
io_poll_t * poll
A pointer to the I/O polling instance used to monitor the event loop.