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

Method _handlerM

include/process/protobuf.hpp:324–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322 // Handlers that ignore the sender.
323 template <typename M>
324 static void _handlerM(
325 T* t,
326 void (T::*method)(const M&),
327 const process::UPID&,
328 const std::string& data)
329 {
330 google::protobuf::Arena arena;
331 M* m = CHECK_NOTNULL(google::protobuf::Arena::CreateMessage<M>(&arena));
332 m->ParseFromString(data);
333
334 if (m->IsInitialized()) {
335 (t->*method)(*m);
336 } else {
337 LOG(WARNING) << "Initialization errors: "
338 << m->InitializationErrorString();
339 }
340 }
341
342 template <typename M>
343 static void _handlerMutM(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected