5#ifndef WPINET_UV_SIGNAL_H_
6#define WPINET_UV_SIGNAL_H_
24 struct private_init {};
27 explicit Signal(
const private_init&) {}
SignalBase is an implementation of the observer pattern, through the use of an emitting object and sl...
Definition Signal.h:495
bool Invoke(F &&f, Args &&... args) const
Definition Handle.h:267
Handle.
Definition Handle.h:290
uv_signal_t * GetRaw() const noexcept
Definition Handle.h:305
Event loop.
Definition Loop.h:37
Signal handle.
Definition Signal.h:23
int GetSignal() const
Get the signal being monitored.
Definition Signal.h:70
sig::Signal< int > signal
Signal generated when a signal occurs.
Definition Signal.h:75
~Signal() noexcept override=default
static std::shared_ptr< Signal > Create(Loop &loop)
Create a signal handle.
void Start(int signum)
Start watching for the given signal.
Signal(const private_init &)
Definition Signal.h:27
void StartOneshot(int signum)
Start watching for the given signal.
void Stop()
Stop watching for the signal.
Definition Signal.h:64
Implement std::hash so that hash_code can be used in STL containers.
Definition PointerIntPair.h:280
int signum
Definition uv.h:1691
UV_EXTERN int uv_signal_stop(uv_signal_t *handle)