AsyncBerkeley
Asynchronous Berkeley sockets. Simple.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
io::execution::basic_poll_multiplexer< Allocator >::sender< Fn >::state< Receiver > Struct Template Reference

An operation state for the poll multiplexer. More...

#include <io/execution/poll_multiplexer.hpp>

Inherits task.

Public Member Functions

auto start () noexcept -> void
 Starts the operation.
 

Static Public Member Functions

static auto complete (task *task_ptr) noexcept -> void
 Completes the operation.
 

Public Attributes

Fn func
 The completion handler.
 
std::shared_ptr< socket_handlesocket
 The socket to operate on.
 
Receiver receiver {}
 The receiver to complete.
 
demultiplexerdemux = nullptr
 The demultiplexer for the socket.
 
std::mutex * mtx = nullptr
 A mutex for thread safety.
 
execution_trigger trigger {}
 The poll trigger.
 

Detailed Description

template<AllocatorLike Allocator = std::allocator<char>>
template<Completion Fn>
template<typename Receiver>
struct io::execution::basic_poll_multiplexer< Allocator >::sender< Fn >::state< Receiver >

An operation state for the poll multiplexer.

This struct contains the state for an I/O operation. It is created when a sender is connected to a receiver.

Template Parameters
ReceiverThe receiver type.

Member Function Documentation

◆ complete()

template<AllocatorLike Allocator = std::allocator<char>>
template<Completion Fn>
template<typename Receiver >
static auto io::execution::basic_poll_multiplexer< Allocator >::sender< Fn >::state< Receiver >::complete ( task task_ptr) -> void
staticnoexcept

Completes the operation.

Parameters
task_ptrThe task to complete.

The documentation for this struct was generated from the following file: