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

Method TContextDistributor

library/cpp/par/par_context.cpp:184–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 }
183
184 TContextDistributor::TContextDistributor(TRemoteQueryProcessor* queryProc, TLocalDataBuffer* writeBuffer)
185 : QueryProc(queryProc)
186 , DistributionIsComplete(true)
187 , QueryId(0)
188 , ActiveReqCount(0)
189 , WriteBuffer(writeBuffer)
190 {
191 SlaveCount = QueryProc.Get() ? QueryProc->GetSlaveCount() : 1;
192 ComputerSendCount.resize(SlaveCount + 1, 0);
193 }
194
195 TContextDistributor::~TContextDistributor() {
196 while (AtomicGet(ActiveReqCount))

Callers

nothing calls this directly

Calls 3

GetMethod · 0.45
GetSlaveCountMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected