#include <toolbox/io/Epoll.hpp>
|
| 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) |
|
Definition at line 157 of file Epoll.hpp.
◆ Event
◆ Epoll() [1/3]
toolbox::io::Epoll::Epoll |
( |
int |
flags = 0 | ) |
|
|
inlineexplicit |
◆ ~Epoll()
toolbox::io::Epoll::~Epoll |
( |
| ) |
|
|
inline |
◆ Epoll() [2/3]
◆ Epoll() [3/3]
toolbox::io::Epoll::Epoll |
( |
Epoll && |
| ) |
|
|
defaultnoexcept |
◆ fd()
|
inlinestaticconstexprnoexcept |
◆ sid()
|
inlinestaticconstexprnoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
Epoll & toolbox::io::Epoll::operator= |
( |
Epoll && |
| ) |
|
|
defaultnoexcept |
◆ timer_fd()
int toolbox::io::Epoll::timer_fd |
( |
| ) |
const |
|
inlinenoexcept |
Returns the timer file descriptor. Exposing the timer file descriptor allows callers to check if one of the signalled events was trigger by the timer.
Definition at line 188 of file Epoll.hpp.
◆ swap()
◆ wait() [1/2]
int toolbox::io::Epoll::wait |
( |
Event |
buf[], |
|
|
std::size_t |
size, |
|
|
std::error_code & |
ec |
|
) |
| |
|
inlinenoexcept |
◆ wait() [2/2]
int toolbox::io::Epoll::wait |
( |
Event |
buf[], |
|
|
std::size_t |
size, |
|
|
MonoTime |
timeout, |
|
|
std::error_code & |
ec |
|
) |
| |
|
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 211 of file Epoll.hpp.
◆ add()
◆ del()
void toolbox::io::Epoll::del |
( |
int |
fd | ) |
|
|
inlinenoexcept |
◆ mod() [1/2]
◆ mod() [2/2]
The documentation for this class was generated from the following file: