boost::corosio::native_signal_set

An asynchronous signal set with devirtualized wait operations.

Synopsis

template<auto Backend>
class native_signal_set
    : public signal_set

Description

This class template inherits from signal_set and shadows the wait operation with a version that calls the backend implementation directly, allowing the compiler to inline through the entire call chain.

Non‐async operations (add, remove, clear, cancel) remain unchanged and dispatch through the compiled library.

A native_signal_set IS‐A signal_set and can be passed to any function expecting signal_set&.

Thread Safety

Same as signal_set.

Base Classes

Name

Description

signal_set

An asynchronous signal set for coroutine I/O.

Types

Name

Description

handle

RAII wrapper for I/O object implementation lifetime.

implementation

Define backend hooks for signal set operations.

io_service

Service interface for I/O object lifecycle management.

Enums

Name

Description

flags_t

Flags for signal registration.

Member Functions

Name

Description

native_signal_set [constructor] [deleted]

Constructors

operator= [deleted]

Assignment operators

add

add overloads

cancel

Cancel all operations associated with the signal set.

clear

Remove all signals from the signal set.

context

Return the execution context.

remove

Remove a signal from the signal set.

wait

Wait for a signal to be delivered.

Protected Member Functions

Name

Description

operator= [deleted]

Assignment operators

do_cancel [virtual]

Dispatch cancel to the concrete implementation.

Protected Static Member Functions

Name

Description

create_handle

Create a handle bound to a service found in the context.

Protected Data Members

Name

Description

h_

The platform I/O handle owned by this object.

Template Parameters

Name

Description

Backend

A backend tag value (e.g., epoll).

See Also

signal_set, epoll_t, iocp_t

Created with MrDocs