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

Method Schedule

library/cpp/neh/tcp2.cpp:1089–1100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1087 }
1088
1089 THandleRef Schedule(const TMessage& msg, IOnRecv* fallback, TServiceStatRef& ss) {
1090 //find exist connection or create new
1091 TRequest::THandleRef hndl(new TRequest::THandle(fallback, msg, !ss ? nullptr : new TStatCollector(ss)));
1092 try {
1093 TRequest::Run(hndl, msg, *this);
1094 } catch (...) {
1095 hndl->ResetOnRecv();
1096 hndl->ReleaseRequest();
1097 throw;
1098 }
1099 return hndl.Get();
1100 }
1101
1102 TExecutorsPool& ExecutorsPool() {
1103 return EP_;

Callers 1

ScheduleRequestMethod · 0.45

Calls 4

ResetOnRecvMethod · 0.80
RunFunction · 0.50
ReleaseRequestMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected