MCPcopy Create free account
hub / github.com/catboost/catboost / Send

Method Send

library/cpp/netliba/v6/ib_cs.cpp:362–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360 }
361 }
362 TIBMsgHandle Send(TPtrArg<IIBPeer> peerArg, TRopeDataPacket* data, const TGUID& packetGuid) override {
363 TIBPeer* peer = static_cast<TIBPeer*>(peerArg.Get()); // trust me, I'm professional
364 if (peer == nullptr || peer->State != IIBPeer::OK) {
365 return -1;
366 }
367 Y_ASSERT(Channels.find(peer->QP->GetQPN())->second == peer);
368 TIBMsgHandle msgHandle = ++MsgCounter;
369 if (peer->SendCount >= MAX_SEND_COUNT) {
370 peer->PendingSendQueue.push_back(TPendingQueuedSend(packetGuid, msgHandle, data));
371 } else {
372 //printf("Sending direct %d\n", msgHandle);
373 StartSend(peer, packetGuid, msgHandle, data);
374 }
375 return msgHandle;
376 }
377 void ParsePacket(ibv_wc* wc, NHPTimer::STime tCurrent) {
378 if (wc->status != IBV_WC_SUCCESS) {
379 TIBPeer* peer = GetChannelByQPN(wc->qp_num);

Callers 3

SendWithHighPriorityMethod · 0.45
DoSendsMethod · 0.45
GetDebugInfoFunction · 0.45

Calls 5

TPendingQueuedSendClass · 0.70
GetMethod · 0.45
findMethod · 0.45
GetQPNMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected