summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Dominik Laskowski <domlaskowski@google.com> 2018-12-11 13:34:06 -0800
committer Dominik Laskowski <domlaskowski@google.com> 2019-01-15 20:55:42 -0800
commit83b8821aa6b046dae88d5e491e5e65aa5c50be0b (patch)
tree5815e73020d20c180977cd2383a4b6d8483260a3 /vulkan/libvulkan/api.cpp
parentdef831d5515836621951a014ed7c3d935a97017b (diff)
SF: Fix thread safety for resync callback
The ResyncCallback for EventThreadConnection reads the HWComposer pointer and the HWComposer::DisplayData map concurrently with writes from the main thread. This CL factors that out into a getVsyncPeriod function protected by mStateLock. Bug: 74619554 Test: Boot and turn display on/off repeatedly Change-Id: I9143a5d35b139d44d1e4e7509598b8568e7739aa
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions