MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / add_socket

Method add_socket

src/opr-mm/impl/zmq_rpc.cpp:220–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void ZmqRpcClient::add_socket(socket_t* socket) {
221 unique_lock<mutex> lk{m_queue_mtx};
222 m_avaliable_sockets.push(socket);
223}
224
225void ZmqRpcClient::request(message_t& request, message_t& reply) {
226 socket_t* client = get_socket();

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected