| 369 | } |
| 370 | |
| 371 | bool 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 | |
| 388 | void Processor::SearchByFeatureId() |
| 389 | { |
no test coverage detected