From 2836e514661df0ffd816cf957ecc35c968377fbe Mon Sep 17 00:00:00 2001 From: Moonchild Date: Tue, 26 Jan 2021 14:55:48 +0000 Subject: [webaudio] Fix up ReverbInputBuffer's writeIndex. --- dom/media/webaudio/blink/ReverbInputBuffer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dom/media/webaudio/blink/ReverbInputBuffer.h') diff --git a/dom/media/webaudio/blink/ReverbInputBuffer.h b/dom/media/webaudio/blink/ReverbInputBuffer.h index 906021c0d..f51aa3091 100644 --- a/dom/media/webaudio/blink/ReverbInputBuffer.h +++ b/dom/media/webaudio/blink/ReverbInputBuffer.h @@ -30,6 +30,7 @@ #define ReverbInputBuffer_h #include "nsTArray.h" +#include "mozilla/Atomics.h" #include "mozilla/MemoryReporting.h" namespace WebCore { @@ -63,7 +64,7 @@ public: private: nsTArray m_buffer; - size_t m_writeIndex; + mozilla::Atomic m_writeIndex; }; } // namespace WebCore -- cgit v1.2.3