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