示例#1
0
 friend void send(Message msg, actor_address from, actor_address to)
 {
   // Execute the message handler in the context of the target's executor.
   post(to->executor_,
     [=]
     {
       to->call_handler(std::move(msg), from);
     });
 }
示例#2
0
文件: actor.cpp 项目: 0xbda2d2f8/asio
 void tail_send(Message msg, actor_address to)
 {
   // Execute the message handler in the context of the target's executor.
   defer(to->executor_,
     [=, msg=std::move(msg), from=this]
     {
       to->call_handler(std::move(msg), from);
     });
 }