diff options
author | RJ Ryan <rryan@mixxx.org> | 2013-10-30 17:51:38 -0400 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2013-10-30 17:51:38 -0400 |
commit | af94a2032ebc011ed005326b714bfd44c4db3bc0 (patch) | |
tree | ed2325bfc669c0f53468443ac3446b258b4f2fd4 /src/controllers/bulk/bulkcontroller.cpp | |
parent | f5c9e4075021ed2603237920ceff82560801d777 (diff) |
Add util/compatibility.h, a file for compatibility helpers to allow us to support Qt4 and Qt5 concurrently.
Diffstat (limited to 'src/controllers/bulk/bulkcontroller.cpp')
-rw-r--r-- | src/controllers/bulk/bulkcontroller.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controllers/bulk/bulkcontroller.cpp b/src/controllers/bulk/bulkcontroller.cpp index 78e17140b0..ee7e1b5483 100644 --- a/src/controllers/bulk/bulkcontroller.cpp +++ b/src/controllers/bulk/bulkcontroller.cpp @@ -11,6 +11,7 @@ #include "controllers/bulk/bulkcontroller.h" #include "controllers/bulk/bulksupported.h" #include "controllers/defs_controllers.h" +#include "util/compatibility.h" BulkReader::BulkReader(libusb_device_handle *handle, unsigned char in_epaddr) : QThread(), @@ -30,7 +31,7 @@ void BulkReader::run() { m_stop = 0; unsigned char data[255]; - while (m_stop == 0) { + while (deref(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 |