diff options
author | Yu Shan <shanyu@google.com> | 2022-02-25 17:09:46 -0800 |
---|---|---|
committer | Yu Shan <shanyu@google.com> | 2022-03-04 14:07:43 -0800 |
commit | f46e1df10bf2eaab8cd658042d55cc3ae29ea209 (patch) | |
tree | 270a301266c2b0ae937fafeddc64ba89495fd620 /camera/common/1.0/default/CameraModule.cpp | |
parent | 4bd6c41dd44e0eaef5466295d256203fcafdbbb6 (diff) |
Clean up resource correctly when client died.
Add proper lock to make sure that all resources would be cleaned
up for a client if the client died. Also add check and not to
allocate resources for an already dead client.
Test: atest DefaultVehicleHalTest.
Run manually and do not see 'failed to call callback' messages.
Bug: 221500501
Change-Id: I1c799a6234017b976e7776537ab91526e785b9b4
Diffstat (limited to 'camera/common/1.0/default/CameraModule.cpp')
0 files changed, 0 insertions, 0 deletions