summaryrefslogtreecommitdiff
path: root/audio/effect/all-versions/default/Effect.cpp
diff options
context:
space:
mode:
authorYu Shan <shanyu@google.com>2022-12-08 11:39:26 -0800
committerYu Shan <shanyu@google.com>2022-12-09 21:41:59 +0000
commit417ca2541aad2f4a639408da2f9d1e01acf42e08 (patch)
tree5cf13403b278867d3c7a66613bde97a283e5ec2f /audio/effect/all-versions/default/Effect.cpp
parentaffc214eb8bff4e7f5ba0592be0a9ed3f36751e6 (diff)
Avoid holding lock while calling recurrent actions.
This CL fixes a dead lock issue caused by RecurrentTimer holding internal locks while calling actions. The dead lock is caused by the following situation: 1. Caller holds a lock, call RecurrentTimer.registerCallback which waits for RecurrentTimer's lock. 2. Another recurrent action happens at the same time. Recurrent timer holds lock before calling the client action. The client action is now waiting for the lock that is currently hold by 1. Test: atest RecurrentTimerTest Bug: 255574557 Change-Id: I3999f4e9cdf581cb851d5f49341dbcc0c160f234 (cherry picked from commit 93a821077effec224d3880875d98c13ef1787e4c)
Diffstat (limited to 'audio/effect/all-versions/default/Effect.cpp')
0 files changed, 0 insertions, 0 deletions