Merge "Bluetooth: Add a second thread for the scheduler" am: 2709c56ad5
am: 31f6040908
Change-Id: I4fb1e8f7a8d011b4c1cb59245dce5c9d20a05b2d
diff --git a/bluetooth/1.0/default/service.cpp b/bluetooth/1.0/default/service.cpp
index fa5106f..a588c37 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);
}