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

Function get_protocol_map

src/brpc/protocol.cpp:72–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 ProtocolEntry entries[MAX_PROTOCOL_SIZE];
71};
72inline ProtocolEntry* get_protocol_map() {
73 return butil::get_leaky_singleton<ProtocolMap>()->entries;
74}
75static pthread_mutex_t s_protocol_map_mutex = PTHREAD_MUTEX_INITIALIZER;
76
77int RegisterProtocol(ProtocolType type, const Protocol& protocol) {

Callers 4

RegisterProtocolFunction · 0.85
FindProtocolFunction · 0.85
ListProtocolsFunction · 0.85
StringToProtocolTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected