Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

basic_channel::try_send

Try to send a message without blocking.

template<
    typename... Args>
bool try_send(
    Args &&... args);

Fails if the buffer is full and there are no waiting receive operations.

For a channel with more than one signature, the message is constructed using the first signature, in order, whose parameters can be initialised from the supplied arguments. The arguments are not moved from unless the send succeeds.

Return Value

true on success, false on failure.


PrevUpHomeNext