|
libcppwrap
A collection of C++ wrappers for native APIs
|
#include <chrono>#include <cstdint>#include <utility>#include <w/posix.hpp>#include <sys/epoll.h>

Go to the source code of this file.
Namespaces | |
| namespace | w |
Functions | |
| w::fd | w::epoll_create (int size=sizeof(nullptr)) |
| Creates an epoll instance. More... | |
| void | w::epoll_ctl (int epfd, int op, int fd, struct epoll_event *event=nullptr) |
| Manipulates an epoll instance. More... | |
| void | w::epoll_ctl (int epfd, int op, int fd, std::uint32_t events, void *user_data=nullptr) |
| Manipulates an epoll instance. More... | |
| void | w::epoll_ctl (int epfd, int op, int fd, std::uint32_t events, int user_data) |
| Manipulates an epoll instance. More... | |
| void | w::epoll_ctl (int epfd, int op, int fd, std::uint32_t events, std::uint32_t user_data) |
| Manipulates an epoll instance. More... | |
| void | w::epoll_ctl (int epfd, int op, int fd, std::uint32_t events, std::uint64_t user_data) |
| Manipulates an epoll instance. More... | |
| unsigned | w::epoll_wait (int epfd, struct epoll_event *events, int maxevents, std::chrono::milliseconds timeout=std::chrono::milliseconds(-1)) |
| Waits for events to occur on an epoll instance. More... | |
| w::fd | w::eventfd (unsigned initval=0, int flags=0) |
| Creates an event file descriptor. More... | |
| std::uint64_t | w::eventfd_read (int evfd) |
Reads the current counter value of an event file descriptor; see the man page of eventfd() for a description of the counter and blocking semantics. More... | |
| void | w::eventfd_write (int evfd, std::uint64_t value) |
Modifies the counter value of an event file descriptor; see the man page of eventfd() for a description of the counter semantics. More... | |
| w::fd | w::timerfd_create (int clockid, int flags=0) |
| Creates a timer file descriptor. More... | |
| void | w::timerfd_settime (int fd, int flags, const struct itimerspec *new_value, struct itimerspec *old_value) |
| Sets the timeout and repetition interval of a timer file descriptor. More... | |
| std::pair< std::chrono::nanoseconds, std::chrono::nanoseconds > | w::timerfd_settime (int fd, int flags, std::chrono::nanoseconds interval, std::chrono::nanoseconds initial) |
| Sets the timeout and repetition interval of a timer file descriptor. More... | |