MCPcopy Create free account
hub / github.com/boostorg/asio / send

Method send

example/cpp14/executors/actor.cpp:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 // Send a message from one actor to another.
96 template <class Message>
97 friend void send(Message msg, actor_address from, actor_address to)
98 {
99 // Execute the message handler in the context of the target's executor.
100 post(to->executor_,
101 [=, msg=std::move(msg)]() mutable
102 {
103 to->call_handler(std::move(msg), from);
104 });
105 }
106
107protected:
108 // Construct the actor to use the specified executor for all message handlers.

Callers 11

testFunction · 0.45
testFunction · 0.45
testFunction · 0.45
testFunction · 0.45
testFunction · 0.45
testFunction · 0.45
testFunction · 0.45
testFunction · 0.45
testFunction · 0.45
testFunction · 0.45
testFunction · 0.45

Calls 2

postFunction · 0.50
call_handlerMethod · 0.45

Tested by

no test coverage detected