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:
parent
46e626d3b8
commit
4ff956f428
@ -164,6 +164,7 @@ bool ProcessThreadImpl::Process()
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
CriticalSectionScoped lock(_critSectModules);
|
||||||
if(!_thread)
|
if(!_thread)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user