diff options
| author | 2023-08-25 17:18:02 +0000 | |
|---|---|---|
| committer | 2023-08-25 17:32:50 +0000 | |
| commit | 671a9f66236f8fdee2b15a3bc84cc1139ddda741 (patch) | |
| tree | b89c193a6a33670238bfd61c3b1948403b87749f /libs/androidfw/StringPool.cpp | |
| parent | 025af291d696a93613e72b192dc8e910607ed538 (diff) | |
Tighten up race condition risk in VulkanManager.
Checking for mDevice != null risks using inconsistent state if the
HardwareBufferUpload thread and the render thread race in setting up
vulkan. Instead, use an atomic bool and std::call_once to manage
initiaizing VulkanManager instances.
Bug: 280178674
Test: builds, boots
Change-Id: Ic0a1c3ae1939ece536eb57de369232b213236d11
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions