diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-12-02 13:25:50 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-12-03 16:38:34 +0100 |
commit | a96b063605ece83d30c32529f2592f650c4165a0 (patch) | |
tree | 07382a21d30ee14e0072ee183fec2b36a2770fb3 /src/libs/installer/keepaliveobject.h | |
parent | 79964b1ee5217f49654498c5e6445dd0477d5589 (diff) |
Don't use volatile for thread synchronization
Use QAtomicInt instead, or just remove the attribute because it's only
used in non-threaded code.
Change-Id: Ieb762ab448ecc312a82478419dc0acd4ec9f82ae
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/keepaliveobject.h')
-rw-r--r-- | src/libs/installer/keepaliveobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/keepaliveobject.h b/src/libs/installer/keepaliveobject.h index f8c20ce86..41e5d9a3f 100644 --- a/src/libs/installer/keepaliveobject.h +++ b/src/libs/installer/keepaliveobject.h @@ -60,7 +60,7 @@ private slots: private: QTimer *m_timer; - volatile bool m_quit; + QAtomicInt m_quit; }; } // namespace QInstaller |