qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
qb::io::async::event::signal<-1 > Struct Reference

Specialization for dynamic signal specification. More...

#include <signal.h>

Inheritance diagram for qb::io::async::event::signal<-1 >:
Collaboration diagram for qb::io::async::event::signal<-1 >:

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ signal()

qb::io::async::event::signal<-1 >::signal ( ev::loop_ref loop)
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.

Parameters
loopReference to the libev event loop (ev::loop_ref) this watcher will be associated with.