Esempio n. 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);
     });
 }
Esempio n. 2
0
 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);
     });
 }