diff options
| author | 2018-12-11 13:34:06 -0800 | |
|---|---|---|
| committer | 2019-01-15 20:55:42 -0800 | |
| commit | 83b8821aa6b046dae88d5e491e5e65aa5c50be0b (patch) | |
| tree | 5815e73020d20c180977cd2383a4b6d8483260a3 /vulkan/libvulkan/api.cpp | |
| parent | def831d5515836621951a014ed7c3d935a97017b (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