Don't use bitfields, reading/wrting them is not atomic
authorGunnar Sletta <gunnar.sletta@digia.com>
Tue, 16 Apr 2013 10:29:52 +0000 (12:29 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 17 Apr 2013 11:39:08 +0000 (13:39 +0200)
Task-number: QTBUG-30663

Change-Id: I952bb4cd9c254f085304ceeddced14b66e0f12b6
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/quick/scenegraph/qsgthreadedrenderloop.cpp

index b457c33..4cca87e 100644 (file)
@@ -328,9 +328,9 @@ public:
 
     QEventLoop eventLoop;
 
-    uint pendingUpdate : 2;
-    uint sleeping : 1;
-    uint syncResultedInChanges : 1;
+    uint pendingUpdate;
+    uint sleeping;
+    uint syncResultedInChanges;
 
     volatile bool guiIsLocked;
     volatile bool shouldExit;