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

Function get_client_side_socket_map

src/brpc/socket_map.cpp:89–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89SocketMap* get_client_side_socket_map() {
90 // The consume fence makes sure that we see a NULL or a fully initialized
91 // SocketMap.
92 return g_socket_map.load(butil::memory_order_consume);
93}
94SocketMap* get_or_new_client_side_socket_map() {
95 get_or_new_client_side_messenger();
96 pthread_once(&g_socket_map_init, CreateClientSideSocketMap);

Callers 3

SocketMapFindFunction · 0.85
SocketMapRemoveFunction · 0.85
SocketMapListFunction · 0.85

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected