summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Moreland2018-05-25 12:14:48 -0500
committerSteven Moreland2018-05-25 12:14:48 -0500
commit3baa6bda4dc55213b46ba2e48e0d549c52e02449 (patch)
tree087eb24ccd12bc7e9013c2108aa0c3495bb46e9a
parent5ed6bca9162bb44e8b3d00019221ba2f37fe1bba (diff)
downloadplatform-hardware-interfaces-3baa6bda4dc55213b46ba2e48e0d549c52e02449.tar.gz
platform-hardware-interfaces-3baa6bda4dc55213b46ba2e48e0d549c52e02449.tar.xz
platform-hardware-interfaces-3baa6bda4dc55213b46ba2e48e0d549c52e02449.zip
confirmationui: explicitly declare only one thread.
Due to an unclear API, wireless_charger accidentally started two threads. Bug: 80102279 Test: use lshal to verify that the service only has one thread Change-Id: Ic6bdb6ef0025173f4388f0550e00a6b4fc2e21df
-rw-r--r--confirmationui/1.0/default/service.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/confirmationui/1.0/default/service.cpp b/confirmationui/1.0/default/service.cpp
index 58ec66ab..39f3f62b 100644
--- a/confirmationui/1.0/default/service.cpp
+++ b/confirmationui/1.0/default/service.cpp
@@ -27,6 +27,7 @@ using android::hardware::joinRpcThreadpool;
27using android::hardware::confirmationui::V1_0::implementation::ConfirmationUI; 27using android::hardware::confirmationui::V1_0::implementation::ConfirmationUI;
28 28
29int main() { 29int main() {
30 ::android::hardware::configureRpcThreadpool(1, true /*willJoinThreadpool*/);
30 auto confirmationui = new ConfirmationUI(); 31 auto confirmationui = new ConfirmationUI();
31 auto status = confirmationui->registerAsService(); 32 auto status = confirmationui->registerAsService();
32 if (status != android::OK) { 33 if (status != android::OK) {