qb
2.0.0.0
C++17 Actor Framework
|
Specialization for dynamic signal specification. More...
#include <signal.h>
Public Types | |
using | base_t = base<ev::sig> |
Base type alias for base<ev::sig>. | |
Public Types inherited from qb::io::async::event::base< ev::sig > | |
using | ev_t |
Alias for the underlying libev event watcher type. |
Public Member Functions | |
signal (ev::loop_ref loop) | |
Constructor. | |
Public Member Functions inherited from qb::io::async::event::base< ev::sig > | |
base (ev::loop_ref loop) | |
Constructor. |
Additional Inherited Members | |
Public Attributes inherited from qb::io::async::event::base< ev::sig > | |
IRegisteredKernelEvent * | _interface |
Pointer to the kernel event interface responsible for handling this event. | |
int | _revents |
Stores the event flags (e.g., EV_READ, EV_WRITE) received from libev when the event triggers. |
Specialization for dynamic signal specification.
This specialization of qb::io::async::event::signal allows the signal number to be specified dynamically at runtime using the set() method of the underlying ev::sig watcher, rather than at compile time via a template argument.
|
inlineexplicit |
Constructor.
Creates a signal watcher without initializing the signal number. The signal must be set later using the set(int signum) method of the ev::sig watcher.
loop | Reference to the libev event loop (ev::loop_ref) this watcher will be associated with. |