Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Unified Diff: Source/core/platform/audio/AudioDSPKernelProcessor.h

Issue 23931002: Fix threading races on AudioDSPKernelProcessor::m_kernels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/platform/audio/AudioDSPKernelProcessor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/audio/AudioDSPKernelProcessor.h
diff --git a/Source/core/platform/audio/AudioDSPKernelProcessor.h b/Source/core/platform/audio/AudioDSPKernelProcessor.h
index 5c03835038f9b711d2781a70e71ef5949707e342..41c168a14e85008909cc7879e6bed01e6b562ba0 100644
--- a/Source/core/platform/audio/AudioDSPKernelProcessor.h
+++ b/Source/core/platform/audio/AudioDSPKernelProcessor.h
@@ -35,6 +35,7 @@
#include "core/platform/audio/AudioProcessor.h"
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
+#include "wtf/ThreadingPrimitives.h"
#include "wtf/Vector.h"
namespace WebCore {
@@ -69,6 +70,7 @@ public:
protected:
Vector<OwnPtr<AudioDSPKernel> > m_kernels;
+ mutable Mutex m_processLock;
bool m_hasJustReset;
};
« no previous file with comments | « no previous file | Source/core/platform/audio/AudioDSPKernelProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698