asio C++ library

PrevUpHomeNext
experimental::basic_concurrent_channel::basic_concurrent_channel (2 of 4 overloads)

Construct and open a experimental::basic_concurrent_channel.

template<
    typename ExecutionContext>
basic_concurrent_channel(
    ExecutionContext & context,
    std::size_t max_buffer_size = 0,
    typename constraint< is_convertible< ExecutionContext &, execution_context & >::value, defaulted_constraint >::type  = defaulted_constraint());

This constructor creates and opens a channel.

Parameters

context

An execution context which provides the I/O executor that the channel will use, by default, to dispatch handlers for any asynchronous operations performed on the channel.

max_buffer_size

The maximum number of messages that may be buffered in the channel.


PrevUpHomeNext