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

Method ProcessReqsInFlyQueue

library/cpp/neh/tcp2.cpp:704–716  ·  view source on GitHub ↗

must be called only from asio thread

Source from the content-addressed store, hash-verified

702
703 //must be called only from asio thread
704 void ProcessReqsInFlyQueue() {
705 if (AtomicGet(State_) == Closed) {
706 return;
707 }
708
709 TRequest* reqPtr;
710
711 while (ReqsInFlyQueue_.Dequeue(&reqPtr)) {
712 TRequestRef reqTmp(reqPtr);
713 reqPtr->UnRef();
714 ReqsInFly_[reqPtr->ReqId()].Swap(reqTmp);
715 }
716 }
717
718 //must be called only from asio thread
719 void OnConnect(const TErrorCode& ec, IHandlingContext&) {

Callers

nothing calls this directly

Calls 5

ReqIdMethod · 0.80
AtomicGetFunction · 0.50
DequeueMethod · 0.45
UnRefMethod · 0.45
SwapMethod · 0.45

Tested by

no test coverage detected