summaryrefslogtreecommitdiff
path: root/libs/binder/RpcSession.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2021-05-11 22:12:15 +0000
committer Steven Moreland <smoreland@google.com> 2021-05-11 22:58:56 +0000
commit1be9135083d7a5797fb1f84a11969bb4d4aaad41 (patch)
treed802747b9e3e98178e7e40aa3297d1b3d6e5e549 /libs/binder/RpcSession.cpp
parenta416e7b190b0275234221e8074ca30c914ce0533 (diff)
libbinder: sess getMaxThreads->getRemoteMaxThreads
In Rpc_Sess_ion, since we will also support a session serving commands (e.g. for callbacks). Bug: 185167543 Test: binderRpcTest Change-Id: I71c6b16d5b7d61f1cd4320443eae41fe08221b4f
Diffstat (limited to 'libs/binder/RpcSession.cpp')
-rw-r--r--libs/binder/RpcSession.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp
index 0471705ede..3e83c99a29 100644
--- a/libs/binder/RpcSession.cpp
+++ b/libs/binder/RpcSession.cpp
@@ -93,7 +93,7 @@ sp<IBinder> RpcSession::getRootObject() {
return state()->getRootObject(connection.fd(), sp<RpcSession>::fromExisting(this));
}
-status_t RpcSession::getMaxThreads(size_t* maxThreads) {
+status_t RpcSession::getRemoteMaxThreads(size_t* maxThreads) {
ExclusiveConnection connection(sp<RpcSession>::fromExisting(this), ConnectionUse::CLIENT);
return state()->getMaxThreads(connection.fd(), sp<RpcSession>::fromExisting(this), maxThreads);
}
@@ -201,7 +201,7 @@ bool RpcSession::setupSocketClient(const RpcSocketAddress& addr) {
// instead of all at once.
// TODO(b/186470974): first risk of blocking
size_t numThreadsAvailable;
- if (status_t status = getMaxThreads(&numThreadsAvailable); status != OK) {
+ if (status_t status = getRemoteMaxThreads(&numThreadsAvailable); status != OK) {
ALOGE("Could not get max threads after initial session to %s: %s", addr.toString().c_str(),
statusToString(status).c_str());
return false;