#include <toolbox/io/Reactor.hpp>
|
| Reactor (ReactorMode mode=ReactorMode::Blocking, std::size_t size_hint=0) |
|
| ~Reactor () override |
|
| Reactor (const Reactor &)=delete |
|
Reactor & | operator= (const Reactor &)=delete |
|
| Reactor (Reactor &&)=delete |
|
Reactor & | operator= (Reactor &&)=delete |
|
Handle | subscribe (int fd, unsigned events, IoSlot slot) |
|
Timer | timer (MonoTime expiry, Duration interval, Priority priority, TimerSlot slot) |
| Throws std::bad_alloc only.
|
|
Timer | timer (MonoTime expiry, Priority priority, TimerSlot slot) |
| Throws std::bad_alloc only.
|
|
void | add_hook (Hook &hook, HookType ht=HookType::EndOfCycleNoWait) noexcept |
|
int | poll (CyclTime now, Duration timeout=NoTimeout) |
|
void | yield () |
|
void | set_high_priority_poll_threshold (Micros thresh) |
|
| Waker () noexcept=default |
|
virtual | ~Waker () |
|
| Waker (const Waker &) noexcept=default |
|
Waker & | operator= (const Waker &) noexcept=default |
|
| Waker (Waker &&) noexcept=default |
|
Waker & | operator= (Waker &&) noexcept=default |
|
void | wakeup () noexcept |
|
Definition at line 45 of file Reactor.hpp.
◆ Event
◆ HookType
Enumerator |
---|
EndOfCycleNoWait | |
EndOfEventDispatch | |
Definition at line 49 of file Reactor.hpp.
◆ Reactor() [1/3]
◆ ~Reactor()
toolbox::io::Reactor::~Reactor |
( |
| ) |
|
|
override |
◆ Reactor() [2/3]
◆ Reactor() [3/3]
toolbox::io::Reactor::Reactor |
( |
Reactor && |
| ) |
|
|
delete |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ subscribe()
◆ timer() [1/2]
Throws std::bad_alloc only.
Definition at line 159 of file Reactor.hpp.
◆ timer() [2/2]
Throws std::bad_alloc only.
Definition at line 164 of file Reactor.hpp.
◆ add_hook()
◆ poll()
Poll for I/O and timer events. The thread-local cycle time is unconditionally updated after the call to epoll() returns.
- Parameters
-
timeout | is ignored when immediate mode is used. Returns the number of events signalled. |
Definition at line 191 of file Reactor.cpp.
◆ yield()
void toolbox::io::Reactor::yield |
( |
| ) |
|
◆ set_high_priority_poll_threshold()
void toolbox::io::Reactor::set_high_priority_poll_threshold |
( |
Micros |
thresh | ) |
|
|
inline |
◆ do_wakeup()
void toolbox::io::Reactor::do_wakeup |
( |
| ) |
|
|
finalprotectedvirtualnoexcept |
The documentation for this class was generated from the following files: