Loading libs/binder/ProcessState.cpp +0 −2 Original line number Original line Diff line number Diff line Loading @@ -328,8 +328,6 @@ void ProcessState::spawnPooledThread(bool isMain) } } status_t ProcessState::setThreadPoolMaxThreadCount(size_t maxThreads) { status_t ProcessState::setThreadPoolMaxThreadCount(size_t maxThreads) { LOG_ALWAYS_FATAL_IF(mThreadPoolStarted && maxThreads < mMaxThreads, "Binder threadpool cannot be shrunk after starting"); status_t result = NO_ERROR; status_t result = NO_ERROR; if (ioctl(mDriverFD, BINDER_SET_MAX_THREADS, &maxThreads) != -1) { if (ioctl(mDriverFD, BINDER_SET_MAX_THREADS, &maxThreads) != -1) { mMaxThreads = maxThreads; mMaxThreads = maxThreads; Loading Loading
libs/binder/ProcessState.cpp +0 −2 Original line number Original line Diff line number Diff line Loading @@ -328,8 +328,6 @@ void ProcessState::spawnPooledThread(bool isMain) } } status_t ProcessState::setThreadPoolMaxThreadCount(size_t maxThreads) { status_t ProcessState::setThreadPoolMaxThreadCount(size_t maxThreads) { LOG_ALWAYS_FATAL_IF(mThreadPoolStarted && maxThreads < mMaxThreads, "Binder threadpool cannot be shrunk after starting"); status_t result = NO_ERROR; status_t result = NO_ERROR; if (ioctl(mDriverFD, BINDER_SET_MAX_THREADS, &maxThreads) != -1) { if (ioctl(mDriverFD, BINDER_SET_MAX_THREADS, &maxThreads) != -1) { mMaxThreads = maxThreads; mMaxThreads = maxThreads; Loading