summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/osx/osxbtutility_p.h
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2015-11-24 10:28:01 +0100
committerTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2015-11-27 14:19:42 +0000
commite117459e0d3d0670aa2cc60dfa3eafe81bbf11a9 (patch)
tree14a495bd997005b9f76e85919d4792adf5a084cf /src/bluetooth/osx/osxbtutility_p.h
parentdab0c9a010cf7fcd521707168cc8107b7ed6af24 (diff)
Bluetooth LE scan - move to its own dispatch queue (iOS/OS X)
Move CBCentralManager's delegate to its own dispatch queue, not the main one, so that even if somebody _blocks_ the main thread somehow, waiting for discovery to finish, the discovery can, indeed, finish. Also, make DDA aware of the fact that now actual scan and 'this' are working on different threads, thus we must be thread-safe. Task-number: QTBUG-49476 Change-Id: I9bcc74131f51389c8a014577c65e0943bbc8da42 Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/osx/osxbtutility_p.h')
-rw-r--r--src/bluetooth/osx/osxbtutility_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bluetooth/osx/osxbtutility_p.h b/src/bluetooth/osx/osxbtutility_p.h
index a69e05c2..3506b0d1 100644
--- a/src/bluetooth/osx/osxbtutility_p.h
+++ b/src/bluetooth/osx/osxbtutility_p.h
@@ -306,6 +306,10 @@ inline QSysInfo::MacVersion qt_OS_limit(QSysInfo::MacVersion osxVersion, QSysInf
#endif
}
+dispatch_queue_t qt_LE_queue();
+// LE scan, in seconds.
+unsigned qt_LE_deviceInquiryLength();
+
} // namespace OSXBluetooth
// Logging category for both OS X and iOS.