Increase stats hardware rpc threadpool.
Increase the threadpool count to 4.
Test: builds, boots
Test: adb shell cmd stats pull-source 10020 returns a battery capcity
Bug: 139453643
Merged-In: I2929fd6ca300781e67dde97d6196939d7928b350
Change-Id: I2929fd6ca300781e67dde97d6196939d7928b350
(cherry picked from commit 3174c0da99502207b8fa4c97533ed1a924d3990f)
diff --git a/cmds/statsd/src/main.cpp b/cmds/statsd/src/main.cpp
index 68082c2..42132ee 100644
--- a/cmds/statsd/src/main.cpp
+++ b/cmds/statsd/src/main.cpp
@@ -78,7 +78,7 @@
ps->giveThreadPoolName();
IPCThreadState::self()->disableBackgroundScheduling(true);
- ::android::hardware::configureRpcThreadpool(1 /*threads*/, false /*willJoin*/);
+ ::android::hardware::configureRpcThreadpool(4 /*threads*/, false /*willJoin*/);
std::shared_ptr<LogEventQueue> eventQueue =
std::make_shared<LogEventQueue>(2000 /*buffer limit. Buffer is NOT pre-allocated*/);