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

Method RunDispatcher

library/cpp/neh/tcp.cpp:599–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597 }
598
599 void RunDispatcher(TCont* c) {
600 TRequestPtr req;
601
602 while (true) {
603 Reqs.DequeueSafe(c, req);
604
605 if (!req) {
606 break;
607 }
608
609 TChannelPtr& ch = Channels.Get(req->RI->Id);
610
611 if (!ch) {
612 ch.Reset(new TChannel(c->Executor(), req->RI));
613 }
614
615 ch->Enqueue(req);
616 }
617
618 c->Executor()->Abort();
619 }
620
621 TThreadRef Thr;
622 TOneConsumerPipeQueue<TRequest> Reqs;

Callers

nothing calls this directly

Calls 6

DequeueSafeMethod · 0.45
GetMethod · 0.45
ResetMethod · 0.45
ExecutorMethod · 0.45
EnqueueMethod · 0.45
AbortMethod · 0.45

Tested by

no test coverage detected