19#ifndef CPPNET_INTERRUPT_HPP
20#define CPPNET_INTERRUPT_HPP
21#include "net/detail/concepts.hpp"
48template <InterruptSource Source> struct
interrupt : public Source {
57#include "impl/interrupt_impl.hpp"
This namespace is for timers and interrupts.
Definition interrupt.hpp:25
An interrupt is an immediately run timer event.
Definition interrupt.hpp:48
auto operator()() const noexcept -> void
Calls the underlying interrupt.
Source interrupt_source_t
The underlying interrupt source type.
Definition interrupt.hpp:50
A socketpair interrupt source.
Definition interrupt.hpp:27
static constexpr auto INVALID_SOCKET
The invalid socket constant.
Definition interrupt.hpp:31
auto interrupt() const noexcept -> void
The interrupt method.
std::array< socket_type, 2 > sockets
The socket pair.
Definition interrupt.hpp:33
io::socket::native_socket_type socket_type
The native socket type.
Definition interrupt.hpp:29