summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Dominik Laskowski <domlaskowski@google.com> 2024-02-16 12:28:40 -0500
committer Dominik Laskowski <domlaskowski@google.com> 2024-02-23 11:03:35 -0500
commit4babfc4ee6d27318d79c1c628d16c07b0b6cd0b5 (patch)
treed91018f66a605edd5ddf661803b80c1590465f9b /services/surfaceflinger/RegionSamplingThread.cpp
parent20b7ccbd72f8ff8fba254115e4c54fb00c0fd440 (diff)
SF: Remove ConnectionHandle concept in Scheduler
This abstraction never made sense, and only incurs pointless locking and hash map lookups. This is a step toward replacing the two EventThreads with a single EventDispatcher. Start the Scheduler's timers after initialization. This solves the same bug as Ib2617b914145bc4180cc7ca27203c59dbd625c94, which avoided crashes without fixing the root cause of the race. In a few cases, initScheduler indirectly calls Scheduler functions that attempt EventThread dispatch before EventThread creation, so skip those EventThread accesses using hasEventThreads for now. Further refactoring will untangle circular dependencies and remove hasEventThreads. Bug: 241285191 Bug: 241285945 Test: presubmit Change-Id: I89b93b47540ab24bb5675edc79370f38bc48114f
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions