Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64a1e08b authored by Mathias Agopian's avatar Mathias Agopian
Browse files

SF doesn't need more than a few binder threads

Change-Id: Ic4659fb81f9990cc7caf84a496a8ae659a1d16a9
parent 4a8111bc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -21,5 +21,8 @@ using namespace android;

int main(int argc, char** argv) {
    SurfaceFlinger::publishAndJoinThreadPool(true);
    // When SF is launched in its own process, limit the number of
    // binder threads to 4.
    ProcessState::self()->setThreadPoolMaxThreadCount(4);
    return 0;
}
+0 −1
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@ public:
    }

    static void publishAndJoinThreadPool(bool allowIsolated = false) {
        sp<ProcessState> proc(ProcessState::self());
        sp<IServiceManager> sm(defaultServiceManager());
        sm->addService(String16(SERVICE::getServiceName()), new SERVICE(), allowIsolated);
        ProcessState::self()->startThreadPool();