void send_as(const actor& from, message_priority prio, const channel& to, Ts&&... xs) { if (! to) { return; } message_id mid; to->enqueue(from.address(), prio == message_priority::high ? mid.with_high_priority() : mid, make_message(std::forward<Ts>(xs)...), nullptr); }
void local_actor::send_tuple(message_priority prio, const channel& dest, message what) { if (!dest) { return; } message_id id; if (prio == message_priority::high) { id = id.with_high_priority(); } dest->enqueue(address(), id, std::move(what), host()); }
void local_actor::send_tuple(message_priority prio, const channel& dest, any_tuple what) { if (!dest) return; message_id id; if (prio == message_priority::high) id = id.with_high_priority(); dest->enqueue({address(), dest, id}, std::move(what), m_host); }