Resolves TSan v2 reports data races in voe_auto_test.

--- Note that I will add more fixes to this CL ---

BUG=1590

Review URL: https://webrtc-codereview.appspot.com/1286005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3770 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
henrika@webrtc.org
2013-04-05 14:34:57 +00:00
parent 10eb92039b
commit 19da719a5f
8 changed files with 111 additions and 49 deletions

View File

@ -209,6 +209,7 @@ int AudioProcessingImpl::set_sample_rate_hz(int rate) {
}
int AudioProcessingImpl::sample_rate_hz() const {
CriticalSectionScoped crit_scoped(crit_);
return sample_rate_hz_;
}