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);
95 #endif // !LELY_IO2_POSIX_FD_LOOP_H_ int io_fd_loop_get_fd(const io_fd_loop_t *loop)
Returns the file descriptor 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.
const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
An I/O polling interface.
void io_fd_loop_restart(io_fd_loop_t *loop)
Restarts a file descriptor event loop.
A file descriptor event loop.
io_poll_t * poll
A pointer to the I/O polling instance used to monitor the 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.
const struct ev_poll_vtbl *const ev_poll_t
The abstract polling interface.
This header file is part of the I/O library; it contains the I/O polling declarations for POSIX platf...
This header file is part of the event library; it contains the abstract task executor interface...
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.
size_t io_fd_loop_run(io_fd_loop_t *loop)
Equivalent to size_t n = 0; while (io_fd_loop_run_one(loop)) n += n < SIZE_MAX; return n;...
void io_fd_loop_destroy(io_fd_loop_t *loop)
Destroys a file descriptor event loop.
io_fd_loop_t * io_fd_loop_create(io_poll_t *poll)
Creates a new file descriptor event loop.
void io_fd_loop_stop(io_fd_loop_t *loop)
Stops the file descriptor event loop.