MCPcopy Create free account
hub / github.com/comaps/comaps / IsCancelled

Method IsCancelled

libs/search/processor.cpp:371–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371bool Processor::IsCancelled() const
372{
373 if (m_lastUpdate)
374 return false;
375
376 bool const ret = base::Cancellable::IsCancelled();
377 bool const byDeadline = CancellationStatus() == base::Cancellable::Status::DeadlineExceeded;
378
379 // todo(@m) This is a "soft deadline": we ignore it if nothing has been
380 // found so far. We could also implement a "hard deadline"
381 // that would be impossible to ignore.
382 if (byDeadline && m_preRanker.Size() == 0 && m_preRanker.NumSentResults() == 0)
383 return false;
384
385 return ret;
386}
387
388void Processor::SearchByFeatureId()
389{

Callers 4

ApplyDiffFunction · 0.45
BailIfCancelledFunction · 0.45
ApplyDiffMethod · 0.45
ApplyBinaryPatchFunction · 0.45

Calls 2

NumSentResultsMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected