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

Method ScheduleRequest

library/cpp/neh/inproc.cpp:170–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 }
169
170 THandleRef ScheduleRequest(const TMessage& msg, IOnRecv* fallback, TServiceStatRef& ss) override {
171 TInprocHandleRef hndl(new TInprocHandle(msg, fallback, !ss ? nullptr : new TStatCollector(ss)));
172 try {
173 TAutoPtr<TRequest> req(new TRequest(hndl));
174
175 if (IOnRequest* cb = Find(req->Location)) {
176 cb->OnRequest(req.Release());
177 } else {
178 throw yexception() << TStringBuf("not found inproc location");
179 }
180 } catch (...) {
181 hndl->Disable();
182 throw;
183 }
184
185 return THandleRef(hndl.Get());
186 }
187
188 TStringBuf Scheme() const noexcept override {
189 return TStringBuf("inproc");

Callers

nothing calls this directly

Calls 6

yexceptionClass · 0.85
FindFunction · 0.50
OnRequestMethod · 0.45
ReleaseMethod · 0.45
DisableMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected