summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qeventloop_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/kernel/qeventloop_p.h')
-rw-r--r--src/corelib/kernel/qeventloop_p.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/corelib/kernel/qeventloop_p.h b/src/corelib/kernel/qeventloop_p.h
index 8e2bfdb55e..30c61ca759 100644
--- a/src/corelib/kernel/qeventloop_p.h
+++ b/src/corelib/kernel/qeventloop_p.h
@@ -51,13 +51,17 @@ class QEventLoopPrivate : public QObjectPrivate
Q_DECLARE_PUBLIC(QEventLoop)
public:
inline QEventLoopPrivate()
- : exit(true), inExec(false), returnCode(-1)
- { }
+ : inExec(false)
+ {
+ returnCode.store(-1);
+ exit.store(true);
+ }
QAtomicInt quitLockRef;
- bool exit, inExec;
- int returnCode;
+ QBasicAtomicInt exit; // bool
+ QBasicAtomicInt returnCode;
+ bool inExec;
void ref()
{