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

Method Start

util/thread/pool.cpp:164–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162
163private:
164 inline void Start(size_t num, size_t maxque) {
165 ShouldTerminate.store(false);
166 MaxQueueSize = maxque;
167 ThreadCountExpected = num;
168
169 try {
170 for (size_t i = 0; i < num; ++i) {
171 Tharr.push_back(Parent_->Pool()->Run(this));
172 ++ThreadCountReal;
173 }
174 } catch (...) {
175 Stop();
176
177 throw;
178 }
179 }
180
181 inline void Stop() {
182 ShouldTerminate.store(true);

Callers

nothing calls this directly

Calls 5

StopFunction · 0.85
PoolMethod · 0.80
storeMethod · 0.45
push_backMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected