summaryrefslogtreecommitdiffstats
path: root/src/controllers/bulk/bulkcontroller.cpp
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-01-09 02:52:57 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-01-09 02:54:28 +0100
commitb00a2a53ca0f04c254182876bca91aa1f77c3bbb (patch)
tree8b70bae84239d1541680084cd6ef44506d934a85 /src/controllers/bulk/bulkcontroller.cpp
parentaf0bd1bb216ad05def95a808541d2629a5580d5f (diff)
controllers/bulk/bulkcontroller: Replace deprecated QAtomicInteger::load()
Diffstat (limited to 'src/controllers/bulk/bulkcontroller.cpp')
-rw-r--r--src/controllers/bulk/bulkcontroller.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controllers/bulk/bulkcontroller.cpp b/src/controllers/bulk/bulkcontroller.cpp
index d178d08487..6dff8c0def 100644
--- a/src/controllers/bulk/bulkcontroller.cpp
+++ b/src/controllers/bulk/bulkcontroller.cpp
@@ -11,6 +11,7 @@
#include "controllers/bulk/bulksupported.h"
#include "controllers/defs_controllers.h"
#include "controllers/controllerdebug.h"
+#include "util/compatibility.h"
#include "util/trace.h"
#include "util/time.h"
@@ -32,7 +33,7 @@ void BulkReader::run() {
m_stop = 0;
unsigned char data[255];
- while (m_stop.load() == 0) {
+ while (atomicLoadAcquire(m_stop) == 0) {
// Blocked polling: The only problem with this is that we can't close
// the device until the block is released, which means the controller
// has to send more data