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

Commit 7a20a3f5 authored by Yifan Hong's avatar Yifan Hong
Browse files

binder: setRpcClientDebug copy # threads from kernel binder.

setRpcClientDebug() now calls RpcServer::setMaxThreads
with getThreadPoolMaxThreadCount(). This is the number
of threads allowed per RpcSession.

Test: binderLibTest
Bug: 190435077
Change-Id: Ib9d2772a5b93947408da1372b91eefcd7128469c
parent 34823233
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -491,6 +491,7 @@ status_t BBinder::setRpcClientDebug(android::base::unique_fd socketFd) {
    // Weak ref to avoid circular dependency: BBinder -> RpcServer -X-> BBinder
    e->mRpcServer->setRootObjectWeak(wp<BBinder>::fromExisting(this));
    e->mRpcServer->setupExternalServer(std::move(socketFd));
    e->mRpcServer->setMaxThreads(binderThreadPoolMaxCount);
    e->mRpcServer->start();
    LOG_RPC_DETAIL("%s(fd=%d) successful", __PRETTY_FUNCTION__, socketFdForPrint);
    return OK;