Reactor class.
More...
#include <reactor.hpp>
|
| | Reactor () |
| | default constructor.
|
| |
| | Reactor (const Reactor &other)=delete |
| | copy constructor.
|
| |
| Reactor & | operator= (const Reactor &other)=delete |
| | copy assignment operator.
|
| |
| | Reactor (Reactor &&other)=delete |
| | move constructor.
|
| |
| Reactor & | operator= (Reactor &&other)=delete |
| | move assignment operator.
|
| |
| | ~Reactor () noexcept |
| | destroy instance.
|
| |
| int | addHandler (int fd, EventHandler *handler, bool sync=true) noexcept |
| | add handler to reactor.
|
| |
| int | delHandler (int fd, bool sync=true) noexcept |
| | delete handler from reactor.
|
| |
| void | run () |
| | run the event loop (blocking).
|
| |
| void | stop (bool sync=true) noexcept |
| | stop the event loop.
|
| |
| int | mbind (int numa) const noexcept |
| | bind command queue memory to a NUMA node.
|
| |
| int | mlock () const noexcept |
| | lock command queue memory in RAM.
|
| |
◆ Reactor() [1/3]
◆ Reactor() [2/3]
| join::Reactor::Reactor |
( |
const Reactor & | other | ) |
|
|
delete |
copy constructor.
- Parameters
-
| other | other object to copy. |
◆ Reactor() [3/3]
| join::Reactor::Reactor |
( |
Reactor && | other | ) |
|
|
delete |
move constructor.
- Parameters
-
| other | other object to move. |
◆ ~Reactor()
◆ addHandler()
| int Reactor::addHandler |
( |
int | fd, |
|
|
EventHandler * | handler, |
|
|
bool | sync = true ) |
|
noexcept |
add handler to reactor.
- Parameters
-
| fd | file descriptor. |
| handler | handler pointer. |
| sync | wait for operation completion if true. |
- Returns
- 0 on success, -1 on failure.
◆ delHandler()
| int Reactor::delHandler |
( |
int | fd, |
|
|
bool | sync = true ) |
|
noexcept |
delete handler from reactor.
- Parameters
-
| fd | file descriptor. |
| sync | wait for operation completion if true. |
- Returns
- 0 on success, -1 on failure.
◆ mbind()
| int Reactor::mbind |
( |
int | numa | ) |
const |
|
noexcept |
bind command queue memory to a NUMA node.
- Parameters
-
- Returns
- 0 on success, -1 on failure.
◆ mlock()
| int Reactor::mlock |
( |
| ) |
const |
|
noexcept |
lock command queue memory in RAM.
- Returns
- 0 on success, -1 on failure.
◆ operator=() [1/2]
copy assignment operator.
- Parameters
-
| other | other object to copy. |
- Returns
- current object.
◆ operator=() [2/2]
move assignment operator.
- Parameters
-
| other | other object to move. |
- Returns
- current object.
◆ run()
run the event loop (blocking).
◆ stop()
| void Reactor::stop |
( |
bool | sync = true | ) |
|
|
noexcept |
stop the event loop.
- Parameters
-
| sync | wait for loop termination if true. |
The documentation for this class was generated from the following files: