summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Avichal Rakesh <arakesh@google.com> 2022-05-03 16:17:13 -0700
committer Avichal Rakesh <arakesh@google.com> 2022-05-04 01:06:49 -0700
commit0f19cc3e903c2580a01e131dc3e09606854f1bd6 (patch)
tree59611159c821e788236045855bf60a853d511855 /libs/androidfw/StringPool.cpp
parent476efd5f8bb1cbbe9286d412260018cb2b1e97b3 (diff)
Ensure that two threads cannot simultaneously close SurfaceImage
SurfaceImage's `close` method is not thread safe but can be called by multiple threads. If two threads call `SurfaceImage#close` simulatneously, it can cause ImageReader to throw IllegalArgumentException. This CL synchronizes the `close` method to prevent spurious exceptions from being thrown when multiple threads attempt to close a SurfaceImage. Bug: 223447712 Test: All existing CTS tests pass on Oriole Change-Id: I49426b771736e378862e1550124e65c26f5d7c1b
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions