MCPcopy Create free account
hub / github.com/3rdparty/libprocess / dispatch

Function dispatch

src/process.cpp:4122–4131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4120namespace internal {
4121
4122void dispatch(
4123 const UPID& pid,
4124 std::unique_ptr<lambda::CallableOnce<void(ProcessBase*)>> f,
4125 const Option<const std::type_info*>& functionType)
4126{
4127 process::initialize();
4128
4129 DispatchEvent* event = new DispatchEvent(std::move(f), functionType);
4130 process_manager->deliver(pid, event, __process__);
4131}
4132
4133} // namespace internal {
4134} // namespace process {

Callers 15

authenticateMethod · 0.70
terminateMethod · 0.70
loopMethod · 0.70
~DataMethod · 0.70
authenticateMethod · 0.70
sendMethod · 0.70
disconnectMethod · 0.70
disconnectedMethod · 0.70
runMethod · 0.70
stopMethod · 0.70
handleMethod · 0.70
foreachFunction · 0.70

Calls 2

deliverMethod · 0.80
initializeFunction · 0.70

Tested by 10

TESTFunction · 0.40
handlerMethod · 0.40
runMethod · 0.40
TEST_FFunction · 0.40
orderMethod · 0.40
afterDelayMethod · 0.40
TEST_PFunction · 0.40
fooMethod · 0.40
_fooMethod · 0.40
pulseMethod · 0.40