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

Unified Diff: Source/modules/webaudio/DeferredTaskHandler.cpp

Issue 1140723003: Implement suspend() and resume() for OfflineAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Bring ToT Created 5 years, 5 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 | « Source/modules/webaudio/DeferredTaskHandler.h ('k') | Source/modules/webaudio/OfflineAudioContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/DeferredTaskHandler.cpp
diff --git a/Source/modules/webaudio/DeferredTaskHandler.cpp b/Source/modules/webaudio/DeferredTaskHandler.cpp
index e5ded30448748d06e92bb85998c3243ef5dc2d82..d4bde56d5a4c32c63545891493df8d4074544ede 100644
--- a/Source/modules/webaudio/DeferredTaskHandler.cpp
+++ b/Source/modules/webaudio/DeferredTaskHandler.cpp
@@ -41,6 +41,12 @@ void DeferredTaskHandler::lock()
m_contextGraphMutex.lock();
}
+void DeferredTaskHandler::offlineContextLock()
+{
+ ASSERT(!isMainThread());
+ m_contextGraphMutex.lock();
+}
+
bool DeferredTaskHandler::tryLock()
{
// Try to catch cases of using try lock on main thread
« no previous file with comments | « Source/modules/webaudio/DeferredTaskHandler.h ('k') | Source/modules/webaudio/OfflineAudioContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698