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

Method TLoopFunc

library/cpp/neh/rpc.cpp:144–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 class TLoopFunc: public TFunc {
143 public:
144 TLoopFunc(TServices* parent, size_t threads, IRequesterRef& rr)
145 : TFunc(parent)
146 , RR_(rr)
147 {
148 T_.reserve(threads);
149
150 try {
151 for (size_t i = 0; i < threads; ++i) {
152 T_.push_back(SystemThreadFactory()->Run(this));
153 }
154 } catch (...) {
155 //paranoid mode on
156 SyncStop();
157 throw;
158 }
159 }
160
161 ~TLoopFunc() override {
162 try {

Callers

nothing calls this directly

Calls 4

SystemThreadFactoryFunction · 0.85
reserveMethod · 0.45
push_backMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected