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

Unified Diff: third_party/WebKit/Source/platform/audio/PushPullFIFO.h

Issue 2777903005: Add WebThread in AudioDestination to support AudioWorkletThread (Closed)
Patch Set: Created 3 years, 9 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
Index: third_party/WebKit/Source/platform/audio/PushPullFIFO.h
diff --git a/third_party/WebKit/Source/platform/audio/PushPullFIFO.h b/third_party/WebKit/Source/platform/audio/PushPullFIFO.h
index 2341372f35ab452fb8814dc22208ff3c24e9cd87..2789dfd4da690ba14cc43b7f2e9e862e1443b563 100644
--- a/third_party/WebKit/Source/platform/audio/PushPullFIFO.h
+++ b/third_party/WebKit/Source/platform/audio/PushPullFIFO.h
@@ -8,6 +8,7 @@
#include "platform/audio/AudioBus.h"
#include "public/platform/WebCommon.h"
#include "wtf/Allocator.h"
+#include "wtf/ThreadingPrimitives.h"
namespace blink {
@@ -65,6 +66,8 @@ class BLINK_PLATFORM_EXPORT PushPullFIFO {
const PushPullFIFOStateForTest getStateForTest() const;
private:
+ Mutex m_lock;
nhiroki 2017/03/29 01:54:05 What does this lock protect?
haraken 2017/03/29 07:56:24 Same question from me.
hongchan 2017/03/29 19:39:59 See push()/pull() methods. This lock protects: m_f
+
// The size of the FIFO.
const size_t m_fifoLength = 0;

Powered by Google App Engine
This is Rietveld 408576698