コード例 #1
0
ファイル: send.hpp プロジェクト: Neverlord/boost.actor
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);
}
コード例 #2
0
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);
}
コード例 #3
0
 /// Removes a monitor from `whom`.
 inline void demonitor(const actor& whom) {
   demonitor(whom.address());
 }
コード例 #4
0
 /**
  * Sends an exit message to `whom`.
  */
 inline void send_exit(const actor& whom, uint32_t reason) {
   send_exit(whom.address(), reason);
 }