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