OSDN Git Service

Bluetooth: Add a second thread for the scheduler
authorMyles Watson <mylesgw@google.com>
Fri, 12 May 2017 18:01:57 +0000 (18:01 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Fri, 12 May 2017 18:01:57 +0000 (18:01 +0000)
am: 33f36706d0

Change-Id: I4730416f799b0947690d4a4544be41bfed191afb

bluetooth/1.0/default/service.cpp

index fa5106f..a588c37 100644 (file)
 
 #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);
 }