mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
audio: save vndbinder threads
Bug: 264617136 Test: boot Change-Id: Ife224bbcf43e4fead359982b44c80e58b5c20726
This commit is contained in:
@@ -81,9 +81,10 @@ static bool registerExternalServiceImplementation(const std::string& libName,
|
||||
int main(int /* argc */, char* /* argv */ []) {
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
|
||||
::android::ProcessState::initWithDriver("/dev/vndbinder");
|
||||
// start a threadpool for vndbinder interactions
|
||||
::android::ProcessState::self()->startThreadPool();
|
||||
if (::android::ProcessState::isVndservicemanagerEnabled()) {
|
||||
::android::ProcessState::initWithDriver("/dev/vndbinder");
|
||||
::android::ProcessState::self()->startThreadPool();
|
||||
}
|
||||
|
||||
ABinderProcess_setThreadPoolMaxThreadCount(1);
|
||||
ABinderProcess_startThreadPool();
|
||||
|
||||
Reference in New Issue
Block a user