summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author Andrei Homescu <ahomescu@google.com> 2022-07-28 02:26:46 +0000
committer Andrei Homescu <ahomescu@google.com> 2022-08-05 09:24:33 +0000
commit9b58a46c44341698ae44103e65de718902d0992e (patch)
treea14fee21b6064588761c9f47ba57e4c59f2941b7 /libs/gui/LayerDebugInfo.cpp
parent2a2071242b50626ea931c116279b93b7d4076b5e (diff)
libbinder: allow multiple outgoing threads for single-threaded
Additional outgoing threads in a single-threaded client do not actually require more threads, so they should be safe to enable. We check the number of incoming threads per RpcSession instead, since those create actual OS threads. Prevents a TOCTTOU issue between calls to setup*Client() and setMaxIncomingThreads() by adding a new mStartedSetup variable that is set early during setupClient, and any calls to RpcSession setters are fatal failures after that point. Bug: 224644083 Test: atest binderRpcTest* Change-Id: Id0ce2cda63e781ecfba86180f3c523be9044d408
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions