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

Method Stop

library/cpp/par/par_host.cpp:65–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 void TRootEnvironment::Stop() {
66 ContextMaster->WaitAllDistributionActivity();
67 if (QueryProc.Get()) {
68 QueryProc->StopSlaves();
69 }
70 Y_ASSERT(LocalExecutor().GetQueueSize() == 0);
71 LocalExecutor().ClearLPQueue();
72 ContextMaster = nullptr;
73 Master = nullptr;
74 if (QueryProc.Get()) {
75 QueryProc->Stop();
76 QueryProc = nullptr;
77 }
78 }
79
80 //////////////////////////////////////////////////////////////////////////
81 void RunSlave(int workerThreadCount, int port) {

Callers 3

~TImplMethod · 0.45
WriteEmergencyDataMethod · 0.45
RunSlaveFunction · 0.45

Calls 5

StopSlavesMethod · 0.80
GetQueueSizeMethod · 0.80
ClearLPQueueMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected