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

Method Cancel

library/cpp/par/par_exec.h:655–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653 };
654
655 void Cancel() {
656 if (AtomicCas(&IsCanceledFlag, (void*)this, (void*)nullptr)) {
657 PAR_DEBUG_LOG << "SplitMRExec canceled" << Endl;
658 if (CompleteNotify.Get())
659 CompleteNotify->MRCommandComplete(true, nullptr);
660 CompleteNotify = nullptr;
661 }
662 }
663 void StartNextBlock() {
664 IUserContext::EDataDistrState ds = UserContext->UpdateDataDistrState(nullptr);
665 if (ds == IUserContext::DATA_UNAVAILABLE) {

Callers

nothing calls this directly

Calls 3

AtomicCasFunction · 0.50
GetMethod · 0.45
MRCommandCompleteMethod · 0.45

Tested by

no test coverage detected