diff options
author | 2021-05-21 23:12:46 +0000 | |
---|---|---|
committer | 2021-05-21 23:12:46 +0000 | |
commit | f15d42920e535b8e52e30c3828f920156c4bdca6 (patch) | |
tree | 867e5143735820eb3d544d08c471f0b866685b74 /libs/binder/ProcessState.cpp | |
parent | 6eaa84facf58829a7ddc378a41edac4ca1b41cf2 (diff) | |
parent | a0b682cc2d0dc7764279af70465ab3c49e2081c6 (diff) |
Merge "Add IBinder::setRpcClient" am: a0b682cc2d
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1683951
Change-Id: Ia2ea464b74f7b658fb8e0059ee5ede35a8bca1e7
Diffstat (limited to 'libs/binder/ProcessState.cpp')
-rw-r--r-- | libs/binder/ProcessState.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index f7ca1e68cb..3095607594 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -359,6 +359,14 @@ status_t ProcessState::setThreadPoolMaxThreadCount(size_t maxThreads) { return result; } +size_t ProcessState::getThreadPoolMaxThreadCount() const { + // may actually be one more than this, if join is called + if (mThreadPoolStarted) return mMaxThreads; + // must not be initialized or maybe has poll thread setup, we + // currently don't track this in libbinder + return 0; +} + status_t ProcessState::enableOnewaySpamDetection(bool enable) { uint32_t enableDetection = enable ? 1 : 0; if (ioctl(mDriverFD, BINDER_ENABLE_ONEWAY_SPAM_DETECTION, &enableDetection) == -1) { |