| 87 | } |
| 88 | |
| 89 | SocketMap* 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 | } |
| 94 | SocketMap* get_or_new_client_side_socket_map() { |
| 95 | get_or_new_client_side_messenger(); |
| 96 | pthread_once(&g_socket_map_init, CreateClientSideSocketMap); |
no test coverage detected