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

Method NeedResult

library/cpp/par/par_exec.h:102–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 }
101 }
102 bool NeedResult() {
103 if (AtomicGet(CurrentState) != 0)
104 return false;
105 if (CancelCheck.Get()) {
106 if (!CancelCheck->MRIsCmdNeeded()) {
107 Cancel();
108 return true;
109 }
110 }
111 return true;
112 }
113 void LocalExec(int id) override {
114 if (!NeedResult())
115 return;

Callers

nothing calls this directly

Calls 4

AtomicGetFunction · 0.50
CancelFunction · 0.50
GetMethod · 0.45
MRIsCmdNeededMethod · 0.45

Tested by

no test coverage detected