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

Method Cancel

library/cpp/par/par_exec.h:361–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359 }
360 }
361 void Cancel() {
362 CHROMIUM_TRACE_FUNCTION();
363 // can cancel op if reduce has not started yet
364 if (AtomicCas(&MapResult, (TMapResultBuffer*)-1, (TMapResultBuffer*)nullptr)) {
365 PAR_DEBUG_LOG << "MRExec canceled" << Endl;
366 CancelAllRemoteQueries();
367 if (CompleteNotify.Get()) {
368 CompleteNotify->MRCommandComplete(true, nullptr);
369 CompleteNotify = nullptr;
370 } else
371 Y_ASSERT(0 && "Notify ptr is lost");
372 }
373 }
374 void ReschedulePartRequest(int partId) {
375 CHROMIUM_TRACE_FUNCTION();
376 TRemoteMapInfo* part = &MapParts[partId];

Callers

nothing calls this directly

Calls 3

AtomicCasFunction · 0.50
GetMethod · 0.45
MRCommandCompleteMethod · 0.45

Tested by

no test coverage detected