summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Yifan Hong <elsk@google.com> 2021-05-13 17:13:44 -0700
committer Yifan Hong <elsk@google.com> 2021-05-13 20:16:09 -0700
commitc276f8db509dfc95caa0f7d0146297c8d330010d (patch)
tree590b60e292d3d245c63c23db4fd444eb0dba506b /vulkan/libvulkan/api.cpp
parent00aeb76928c7bd4c6455ff959ed3cc3bce69a73d (diff)
RpcServer::setupSocketServer prevent race
If two threads calls setup*Server, they may race. Make sure one of them fail. setupSocketServer calls into setupExternalServer to double check that no other thread was setting up server in the mean time to prevent TOCTOU. This change also ensures that setupExternalServer is the only place where mServer is set, and it is guarded by a lock. Test: binderRpcTest Change-Id: Iadd3585b9cb4aa157bae072943f1bd47896a7a77
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions