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 actor_ostream::redirect(const actor& src, std::string f, int flags) { send_as(src, detail::singletons::get_scheduling_coordinator()->printer(), redirect_atom::value, src.address(), std::move(f), flags); }
/// Removes a monitor from `whom`. inline void demonitor(const actor& whom) { demonitor(whom.address()); }
/** * Sends an exit message to `whom`. */ inline void send_exit(const actor& whom, uint32_t reason) { send_exit(whom.address(), reason); }