limit number of extra binder threads in SF to 4

it should be enough and it makes debugging easier.

Bug: 6609290
Change-Id: I2341e20cfcfde184fe1ed9b925215f8fa3481ced
This commit is contained in:
Mathias Agopian 2013-03-07 15:32:47 -08:00
parent 6c337e7a66
commit 649b976a00

View File

@ -20,9 +20,9 @@
using namespace android; using namespace android;
int main(int argc, char** argv) { int main(int argc, char** argv) {
SurfaceFlinger::publishAndJoinThreadPool(true);
// When SF is launched in its own process, limit the number of // When SF is launched in its own process, limit the number of
// binder threads to 4. // binder threads to 4.
ProcessState::self()->setThreadPoolMaxThreadCount(4); ProcessState::self()->setThreadPoolMaxThreadCount(4);
SurfaceFlinger::publishAndJoinThreadPool(true);
return 0; return 0;
} }