Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 358615af authored by Ray Chin's avatar Ray Chin Committed by Android (Google) Code Review
Browse files

Merge "Increase the size of threadpool to 16"

parents 13e03d21 caeb9e14
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@ cc_binary {
        "libbase",
        "libbinder",
        "libfmq",
        "libhidlbase",
        "liblog",
        "libtunerservice",
        "libutils",
+3 −1
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#include <binder/IPCThreadState.h>
#include <binder/IServiceManager.h>
#include <utils/Log.h>
#include <hidl/HidlTransportSupport.h>

#include "TunerService.h"
#include "hidl/TunerHidlService.h"
@@ -32,7 +33,8 @@ int main() {

    sp<ProcessState> proc(ProcessState::self());
    sp<IServiceManager> sm = defaultServiceManager();
    ProcessState::self()->setThreadPoolMaxThreadCount(8);
    hardware::configureRpcThreadpool(16, true);
    ProcessState::self()->setThreadPoolMaxThreadCount(16);

    // Check legacy HIDL HAL first. If it's not existed, use AIDL HAL.
    binder_status_t status = TunerHidlService::instantiate();