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 /tests | |
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 'tests')
-rw-r--r-- | tests/downloadspeed/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/downloadspeed/main.cpp b/tests/downloadspeed/main.cpp index ff741c421..d510eb0fa 100644 --- a/tests/downloadspeed/main.cpp +++ b/tests/downloadspeed/main.cpp @@ -1,6 +1,6 @@ /************************************************************************** ** -** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). +** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the Qt Installer Framework. @@ -126,7 +126,7 @@ public slots: } private: - volatile bool m_downloadFinished; + bool m_downloadFinished; }; |