DescriptionWebRtcAudioDeviceImpl and WebRtcAudioRenderer reference each other and are invoked in different threads.
This CL ensures that locks are taken in the same order in both threads in order to avoid deadlocks.
BUG=433993
TEST=Existing WebRtc content_browsertests with TSAN enabled.
Committed: https://crrev.com/5330f31cf74e3756dc2103f8c3d5840b5f6a2884
Cr-Commit-Position: refs/heads/master@{#322995}
Patch Set 1 #Patch Set 2 : Fix the way locks are acquired in WebRtcAudioDeviceImpl::SetAudioRenderer #Patch Set 3 : #Patch Set 4 : Name variables in comments according to convention, extra header comment. #
Total comments: 1
Messages
Total messages: 16 (6 generated)
|