mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:23:37 +00:00
audio: use binder threadpool am: d90c47420a am: 142ba0857b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1986309 Change-Id: I8e1412c89505beefb28523bf938d69be9970d367
This commit is contained in:
@@ -52,6 +52,7 @@ cc_binary {
|
||||
shared_libs: [
|
||||
"libcutils",
|
||||
"libbinder",
|
||||
"libbinder_ndk",
|
||||
"libhidlbase",
|
||||
"liblog",
|
||||
"libutils",
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <android/binder_process.h>
|
||||
#include <binder/ProcessState.h>
|
||||
#include <cutils/properties.h>
|
||||
#include <hidl/HidlTransportSupport.h>
|
||||
@@ -52,6 +53,9 @@ int main(int /* argc */, char* /* argv */ []) {
|
||||
// start a threadpool for vndbinder interactions
|
||||
::android::ProcessState::self()->startThreadPool();
|
||||
|
||||
ABinderProcess_setThreadPoolMaxThreadCount(1);
|
||||
ABinderProcess_startThreadPool();
|
||||
|
||||
const int32_t defaultValue = -1;
|
||||
int32_t value =
|
||||
property_get_int32("persist.vendor.audio.service.hwbinder.size_kbyte", defaultValue);
|
||||
|
||||
Reference in New Issue
Block a user