Fixes data race in WebRTCAudioDeviceTest.Construct reported by ThreadSanitizer

BUG=159112

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3750 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
henrika@webrtc.org 2013-04-02 11:59:11 +00:00
parent 46e626d3b8
commit 4ff956f428

View File

@ -164,6 +164,7 @@ bool ProcessThreadImpl::Process()
{ {
return true; return true;
} }
CriticalSectionScoped lock(_critSectModules);
if(!_thread) if(!_thread)
{ {
return false; return false;