Toolbox snapshot
The Reactive C++ Toolbox
|
#include <toolbox/io/Epoll.hpp>
Public Types | |
using | Event = EpollEvent |
Public Member Functions | |
Epoll (int flags=0) | |
~Epoll () | |
Epoll (const Epoll &)=delete | |
Epoll & | operator= (const Epoll &)=delete |
Epoll (Epoll &&) noexcept=default | |
Epoll & | operator= (Epoll &&) noexcept=default |
int | timer_fd () const noexcept |
void | swap (Epoll &rhs) noexcept |
int | wait (Event buf[], std::size_t size, std::error_code &ec) noexcept |
Returns the number of file descriptors that are ready. | |
int | wait (Event buf[], std::size_t size, MonoTime timeout, std::error_code &ec) noexcept |
void | add (int fd, int sid, unsigned events) |
void | del (int fd) noexcept |
void | mod (int fd, int sid, unsigned events, std::error_code &ec) noexcept |
void | mod (int fd, int sid, unsigned events) |
Static Public Member Functions | |
static constexpr int | fd (const Event &ev) noexcept |
static constexpr int | sid (const Event &ev) noexcept |
|
defaultnoexcept |
|
inlinenoexcept |
Returns the number of file descriptors that are ready.
Definition at line 193 of file Epoll.hpp.
Referenced by toolbox::io::Reactor::poll().
|
inlinenoexcept |
Returns the number of file descriptors that are ready, or zero if no file descriptor became ready during before the operation timed-out. The number of file descriptors returned may include the timer file descriptor, so callers must check for the presence of this descriptor.
Definition at line 225 of file Epoll.hpp.
Referenced by Epoll(), toolbox::io::Reactor::Reactor(), and toolbox::io::Reactor::subscribe().
Definition at line 231 of file Epoll.hpp.
Referenced by ~Epoll(), and toolbox::io::Reactor::~Reactor().