summaryrefslogtreecommitdiffstats
path: root/bluetooth/1.0/default/service.cpp
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@google.com>2017-05-11 16:39:59 -0700
committerMyles Watson <mylesgw@google.com>2017-05-11 16:57:01 -0700
commit74c601361c5f2d68561b545b7b7a52a3916ba8e9 (patch)
tree1599eedc8f4de5a37431f1639cdacfa6b5ebc75c /bluetooth/1.0/default/service.cpp
parent319b8292be84f757308d90a972595bad08f95c12 (diff)
downloadplatform_hardware_interfaces-74c601361c5f2d68561b545b7b7a52a3916ba8e9.tar.gz
platform_hardware_interfaces-74c601361c5f2d68561b545b7b7a52a3916ba8e9.tar.bz2
platform_hardware_interfaces-74c601361c5f2d68561b545b7b7a52a3916ba8e9.zip
Bluetooth: Add a second thread for the scheduler
Test: service call bluetooth_manager 6 # (Stop Bluetooth) /data/nativetest64/VtsHalBluetoothV1_0TargetTest/\ VtsHalBluetoothV1_0TargetTest Bug: 38178265, 34461621 Change-Id: Ia8f6683ca47c9deac43d1047846caee5688f1eca
Diffstat (limited to 'bluetooth/1.0/default/service.cpp')
-rw-r--r--bluetooth/1.0/default/service.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/bluetooth/1.0/default/service.cpp b/bluetooth/1.0/default/service.cpp
index fa5106f58a..a588c37537 100644
--- a/bluetooth/1.0/default/service.cpp
+++ b/bluetooth/1.0/default/service.cpp
@@ -20,10 +20,13 @@
#include <hidl/LegacySupport.h>
+// Add an extra thread for calls to the scheduler service.
+static const size_t kMaxThreads = 2;
+
// Generated HIDL files
using android::hardware::bluetooth::V1_0::IBluetoothHci;
using android::hardware::defaultPassthroughServiceImplementation;
int main() {
- return defaultPassthroughServiceImplementation<IBluetoothHci>();
+ return defaultPassthroughServiceImplementation<IBluetoothHci>(kMaxThreads);
}