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

Commit caeb9e14 authored by Ray Chin's avatar Ray Chin
Browse files

Increase the size of threadpool to 16

Bug: 256771936
Test: atest android.media.tv.tuner.cts
Change-Id: I275bd78425a62e2f4f19c6c7fd451ef7a4d69e59
parent 99192f9f
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();