Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

basic_channel::try_send_n_via_dispatch

Try to send a number of messages without blocking, using dispatch semantics to call the receive operations' completion handlers.

template<
    typename... Args>
std::size_t try_send_n_via_dispatch(
    std::size_t count,
    Args &&... args);

The receive operations' completion handlers may be called from inside this function.

For a channel with more than one signature, the messages are constructed using the first signature, in order, whose parameters can be initialised from the supplied arguments.

Return Value

The number of messages that were sent.


PrevUpHomeNext