BabyBluetooth icon indicating copy to clipboard operation
BabyBluetooth copied to clipboard

CBCentralManager 子线程

Open Beyond-Chao opened this issue 6 years ago • 0 comments

CBCentralManager 创建时可以指定一个queue,默认是main queue,在main queue中创建的话,会堵塞主线程吗?现遇到一个问题:在一个页面即有AVPlayer播放网络视频,又有CBCentralManager在主线程中扫描外设,导致视频加载很慢,当我关掉蓝牙之后,视频加载很快,播放也很流畅。不确定是不是因为蓝牙的原因。想知道什么场景下需要自己创建一个queue或者把CBCentralManager的事件丢掉子线程中处理?

Beyond-Chao avatar Jul 05 '18 03:07 Beyond-Chao