forked from qt-creator/qt-creator
Clang: Ensure to cancel every expired or not added job
Previosly the JobQueue cancelled job requests for some reasons, but not for others. Conceptually, JobQueue should not make any difference between those. Introduce equal treatment and always cancel if a job request could not be added or is expired as this avoids leaving the Qt Creator side waiting for a response. Change-Id: I26b392b7f80b89ba2ae9a46a8d1b51403ec6eb4a Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -66,7 +66,8 @@ private:
|
||||
bool isJobRunningForJobRequest(const JobRequest &jobRequest);
|
||||
JobRequests takeJobRequestsToRunNow();
|
||||
void removeExpiredRequests();
|
||||
bool isJobRequestExpired(const JobRequest &jobRequest);
|
||||
bool isJobRequestAddable(const JobRequest &jobRequest, QString ¬AddableReason);
|
||||
bool isJobRequestExpired(const JobRequest &jobRequest, QString &expirationReason);
|
||||
|
||||
private:
|
||||
Documents &m_documents;
|
||||
|
||||
Reference in New Issue
Block a user