diff options
author | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2022-10-26 15:02:18 +0300 |
---|---|---|
committer | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2022-11-14 17:27:20 +0200 |
commit | 869fafed0ca087c56015088f2ab7d530a4a79e76 (patch) | |
tree | 9f0b7c2570bf7e04dceef893ac38c21cba14a2c0 /src/libs/installer/createlinkoperation.h | |
parent | c5500a34e21f548533dea60d7c912882c56fe801 (diff) |
Metadata cache: clear cache in a separate thread
This removes the visible blocked UI while clearing cache items, which
takes some time. Disable controls on the dialog and show a basic
progress bar while the clearing is in progress.
Also add basic access serialization to GenericDataCache<T> class
public methods. It is still possible that the user closes the settings
dialog with other means before the clearing in a separate thread was
completed, and we want to avoid crashing to race conditions in such
case. If the user manages to navigate forward in installer pages, to
fetch metadata again, it wouldn't still work correctly though.
Task-number: QTIFW-2815
Change-Id: Ic2c0feac44aff69c458105cf0f559e8693fc0d69
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs/installer/createlinkoperation.h')
0 files changed, 0 insertions, 0 deletions