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

Unified Diff: third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.h

Issue 1954663002: Initialize DeferredTaskHandler's audio thread ID once. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: out-of-line setter Created 4 years, 7 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/modules/webaudio/DeferredTaskHandler.h
diff --git a/third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.h b/third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.h
index e5dd672ae60e6bd47c77958fa03613dbea4bf258..7762706091e77c58fa7dd831b37512707bfe1b21 100644
--- a/third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.h
+++ b/third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.h
@@ -99,7 +99,7 @@ public:
//
// Thread Safety and Graph Locking:
//
- void setAudioThread(ThreadIdentifier thread) { releaseStore(&m_audioThread, thread); } // FIXME: check either not initialized or the same
+ void setAudioThreadToCurrentThread();
ThreadIdentifier audioThread() const { return acquireLoad(&m_audioThread); }
// TODO(hongchan): Use no-barrier load here. (crbug.com/247328)

Powered by Google App Engine
This is Rietveld 408576698