diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2016-10-06 12:54:22 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2016-10-10 12:37:20 +0000 |
commit | bf5c1cc4fba80e0f08ba796d14ff1b611fbbf4f4 (patch) | |
tree | 474941df6576862ef725e7114148865ed0c7ac56 /src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp | |
parent | 380d756a03346e5bbb83101f49ed6f6696c42c6a (diff) | |
download | qt-creator-bf5c1cc4fba80e0f08ba796d14ff1b611fbbf4f4.tar.gz |
Clang: Avoid duplicate jobs without changes in-between
This could happen, e.g. with this message order:
>>> updateTranslationUnitsForEditor()
add job<1>
run job<1>
>>> updateVisibleTranslationUnits(Utf8String(), {})
>>> updateVisibleTranslationUnits(path, {path})
add job<2>
finish job<1>
run job<2> -- Ops, nothing is changed but job<2> is started
This led to an outdated translation unit (e.g. wrong highlighting).
Now JobQueue checks for duplicates in the queue and checks all the
currently running jobs.
Change-Id: I05843fddcbd21ce0489681c283227c0027ded428
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp')
0 files changed, 0 insertions, 0 deletions