MCPcopy Create free account
hub / github.com/apache/brpc / find_message_handler

Function find_message_handler

src/mcpack2pb/mcpack2pb.cpp:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49MessageHandler find_message_handler(const std::string& full_name) {
50 pthread_once(&s_init_handler_map_once, init_handler_map);
51 MessageHandler* handler = s_handler_map->seek(full_name);
52 if (handler != NULL) {
53 return *handler;
54 }
55 MessageHandler null_handler = { NULL, NULL, NULL, NULL };
56 return null_handler;
57}
58
59} // namespace mcpack2pb

Callers 8

ParseRequestFromIOBufMethod · 0.85
ParseRequestFromIOBufMethod · 0.85
ParseResponseFunction · 0.85
SerializeUbrpcRequestFunction · 0.85

Calls 1

seekMethod · 0.45

Tested by

no test coverage detected